lobster
v0.1.0
Published
very simple FIFO lock primitive
Downloads
2
Readme
lobster provides a very simple FIFO lock primitive.
Usage
var lobstr = require('lobster')
, lock = lobstr()
for (var i = 0; i < 10; i++) {
lock(function (i, yield) {
console.log(i)
setTimeout(yield, 50)
}.bind(null, i))
}