Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26411] API: Support async variants of Ti.IOStream methods

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-10-01T19:15:42.000+0000
Affected Version/sRelease 7.4.0
Fix Version/sRelease 8.0.0
ComponentsAndroid, iOS, TiAPI, Windows
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2018-09-25T18:59:50.000+0000
Updated2019-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.

Comments

  1. Lokesh Choudhary 2019-01-23

    Verified the fix with SDK 8.0.0.v20190123061938. Closing.

JSON Source