Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 319 Bytes

build status

Overview

var Barrier = require('barrier');

var b = new Barrier();

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


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