[TIMOB-26411] API: Support async variants of Ti.IOStream methods
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-10-01T19:15:42.000+0000 |
Affected Version/s | Release 7.4.0 |
Fix Version/s | Release 8.0.0 |
Components | Android, iOS, TiAPI, Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2018-09-25T18:59:50.000+0000 |
Updated | 2019-01-23T21:31:40.000+0000 |
Description
We currently have synchronous read/write calls for Ti.IOStreams. This has been our historical API, but having I/O done in a blocking synchronous way is a big performance no-no, and is especially bad when running on the main thread.
We should support passing in callback functions as optional final arguments to these functions, and consider deprecating the block/sync versions.
Verified the fix with SDK 8.0.0.v20190123061938. Closing.