A very simple implementation of Barrier as a coordination primitive
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
.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();
});