do-later
Delayed job implementation for Node and MongoDB
Last updated 5 years ago by guard .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install do-later 
SYNC missed versions from official npm registry.

do-later

A delayed job implementation for Node

Usage:

DoLater = require('do-later');
doLater = new DoLater({
    host: 'localhost',
    port: 27017,
    db: 'db-name',
    collection: '_dolater'
    /*
    add user and password if required
    */
});

doLater.on('some-job', function (param1, params2) {
  // do something with params
});

doLater.doLater(10, 'some-job', 1, 2); // in 10 seconds do the job with arguments 1 and 2

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

9 Versions

  • 0.1.0                                ...           5 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.7 [deprecated]           ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1 [deprecated]           ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |