Pend
Dead-simple optimistic async helper.
Usage
var Pend = ;var pend = ;pendmax = 10; // defaults to Infinity; // pend.wait will have to wait for this hold to finishpend;pend;pend;
Output:
this function is immediately executed
this function is also immediately executed
calling cb 1
calling cb 2
this is excuted when the first 2 have returned.
err is a possible error in the standard callback style.