ncallbacks

function that expires after n calls

npm install ncallbacks
99 downloads in the last day
1 981 downloads in the last week
11 375 downloads in the last month

nCallbacks

function that executes n times

This is a stupid flow control library. Here's how you can use it.

var end = nCallbacks(3, function (err, whatever) {
    console.log('done now');
});

firstAsynchronousThing(end);
secondAsynchronousThing(end);
thirdAsynchronousThing(end);

LICENSE

I don't care

npm loves you