asynctools

Haxe implementation of the npm async package.
https://github.com/ciscoheat/asynctools

To install, run:

haxelib install asynctools 0.1.0 

See using Haxelib in Haxelib documentation for more information.

README.md

AsyncTools

A Haxe implementation of Async. The most important parts are working:

  • aEach, aEachSeries, aEachLimit
  • aMap, aMapSeries, aMapLimit
  • aFilter, aFilterSeries, aFilterLimit

Also includes a slightly modified version of the @async feature in haxe-js-kit

The change is that you can do this:

class YourClass implements Async {
	function anAsyncMethod(done : Error -> Void) : Void {
		var err = @async(err => done) some.otherAsync();
		// ...
	}
}

Which will add an if statement directly after the call:

function anAsyncMethod(done : Error -> Void) : Void {
	var err = @async(err => done) some.otherAsync();
	if(err != null) return done(err);
	// ...
}

Installing and using

haxelib install asynctools

using AsyncTools

class YourClass implements Async

Contributors
ciscoheat
Version
0.1.0
Published
2 years 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