Asynchronous sys module for all sys targets and node.js.
The structure mimics the haxe std sys classes. Each method has an asynchronous
counterpart in asys. Asynchronous methods return a
Future<Data> or a
For example where you would previously write
That would become
FileSystem.exists(path).handle(function(exists) trace(exists) );
Using tink_await this can be written as:
There other shortcuts for working with futures and surprises which you can find in the tink_core documentation.
All methods are handled asynchronously on node.js.
On other targets all methods are implemented using
If used in combination with tink_runloop, file io will be done asynchronously.
asys io File FileInput FileOutput FileSeek Process net Host Socket ssl Socket FileStat FileSystem