workmen

1.0.1 • Public • Published

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]

Readme

Keywords

none

Package Sidebar

Install

npm i workmen

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • wenkesj