0.1.0 • Published 10 years ago

ywait v0.1.0

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

ywait.js

ywait is an asynchronous utility library that provides functions to wait for the completion of callbacks.

Under development.

ywait.keys

var yw=ywait.keys("foo", "bar");

getBar(yw.bar);
queryFoo(1, 2, 3, yw.foo);

// waits for bar and foo to be called
yw.final(function(err, results)
{
});

ywait.parallel

(similar to async.js)

ywait.parallel(
[
  function(cb) { ... },
  function(cb) { ... }
], function(err, results)
{
});