Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 392 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 392 Bytes

Barrier is a simple implementation of the Barrier MPI function (kind of).

Example:

var Barrier = require('./barrier');

var bar = new Barrier();

bar.sync();
setTimeout(function(){ console.log('1 Finish');bar.finish();} , 1000);

bar.sync();
setTimeout(function(){ console.log('2 Finish');bar.finish();} , 7000);


bar.complete(function (){
	console.log('TELEIOSAN OLA')
});