npm.io
1.0.1 • Published 10 years ago

workmen

Licence
MIT
Version
1.0.1
Deps
2
Vulns
0
Weekly
0
Stars
1
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

workmen

Maintainable deferred work for Node.js.

npm i workmen --save

API

var Worker = require('workmen');
var worker = new Worker();

worker.open(workFunction)

Creates an event loop filled with work.

worker.open(function() {
  // ... Do something with this event loop.
});
worker.close()

Stop all work on a worker.

worker.close();

Testing

node ./test [--verbose]