queued

0.1.1 • Public • Published

node-queued

Queued client for Node.js

Example

var queued = require('queued');
var client = queued('http://localhost:5353', { auth: '...' });
var queue = client.queue('testing');

Producer:

queue.enqueue('foo', function (err, item) {
    ...
});

Consumer:

queue.dequeue({ timeout: 10, wait: 30 }, function (err, item) {
    if (err) throw err;
 
    console.log(item.value);
 
    item.complete(function (err) {
        if (err) throw err;
    });
});

Install

$ npm install queued

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i queued

Weekly Downloads

0

Version

0.1.1

License

none

Last publish

Collaborators

  • scttnlsn