[TIMOB-3746] Standardize Ti.Stream asynch callback responses
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-16T11:56:01.000+0000 |
Affected Version/s | Sprint 2011-17 |
Fix Version/s | Release 1.7.0, Sprint 2011-17 |
Components | iOS |
Labels | ti.stream |
Reporter | Stephen Tramer |
Assignee | Stephen Tramer |
Created | 2011-04-26T13:49:36.000+0000 |
Updated | 2011-05-16T11:56:01.000+0000 |
Description
Need to standardize the results of Ti.Stream callback responses. In particular:
- errorDescription should be an empty string if there is no error
- errorState is a Number
- errorState should be 0 if there is no error
Error codes are to be standardized at some point.
Resolved by 3e7e251.
Existing tests in Drillbit pass: asyncRead covers the required sanity checks in the Ti.Stream.read callback function.