workmen
v1.0.1
Published
Maintainable async workers for Node.js.
Downloads
6
Readme
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]