lobster

0.1.0 • Public • Published

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))
}

Readme

Keywords

none

Package Sidebar

Install

npm i lobster

Weekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • erkl