asys

Asynchronous sys std module
https://github.com/benmerckx/asys

To install, run:

haxelib install asys 0.3.0 

See using Haxelib in Haxelib documentation for more information.

README.md

asys

Build Status Gitter

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 Surprise<Data, Error>.

For example where you would previously write

trace(FileSystem.exists(path));

That would become

FileSystem.exists(path).handle(function(exists)
	trace(exists)
);

Using tink_await this can be written as:

trace(@await FileSystem.exists(path));

There other shortcuts for working with futures and surprises which you can find in the tink_core documentation.

Currently implemented

All methods are handled asynchronously on node.js.
On other targets all methods are implemented using Future.sync. 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

License: MIT

Contributors
benmerckx
Version
0.3.0
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github