barrier

A very simple implementation of Barrier as a coordination primitive

npm install barrier
4 downloads in the last month

Overview

var Barrier = require('barrier');

var b = new Barrier();

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


fs.doSomethingAsync(function () {
  b.complete();
});
npm loves you