node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

barrier

Overview

var Barrier = require('barrier');

var b = new Barrier();

b.once(function() {
  // do some stuff
});


fs.doSomethingAsync(function () {
  b.complete();
});