Comparing version 0.2.6 to 0.2.7
@@ -8,3 +8,3 @@ | ||
, chain: require('./chain') | ||
, Counter: require('./Counter') | ||
, waiter: require('./waiter') | ||
}; |
{ | ||
"name" : "ee-async" | ||
, "description" : "simpler control flow for asynchronous operations" | ||
, "version" : "0.2.6" | ||
, "version" : "0.2.7" | ||
, "homepage" : "https://github.com/eventEmitter/ee-async" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
@@ -66,1 +66,10 @@ # ee-async | ||
wait for several callbacks | ||
var waiter = async.waiter(function(){ | ||
// both load events were fired | ||
}); | ||
someAsyncApi.on('load', waiter()); | ||
anotherApi.on('load', waiter()); |
@@ -63,7 +63,7 @@ | ||
var counter = new async.Counter(function(){ | ||
var waiter = new async.waiter(function(){ | ||
}); | ||
counter.count()(); | ||
counter.count()(); | ||
waiter()(); | ||
waiter()(); |
9505
75
10
221