A very simple implementation of Barrier as a coordination primitive
JavaScript
Latest commit dcfda45 Aug 29, 2012 Dave Dopson Update test/barrier-test.js
Permalink
Failed to load latest commit information.
lib
test
.gitignore Creating initial package boilerplate for new npm module 'barrier' Apr 5, 2012
.travis.yml
README.md
package.json

README.md

build status

Overview

var Barrier = require('barrier');

var b = new Barrier();

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


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