Skip to content

Commit

Permalink
fix(docs): Updating method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes committed Oct 20, 2017
1 parent f26fc17 commit a6fb667
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,20 @@ function myJob(arg1, arg2) {
* @throws {Error} Throws an Error if the job is already at max concurrency
*/
startJob(name, ...args)

/**
* Run your Job periodically
*
* @param {string} name The name of your Job
* @param {number} interval The interval between run attempts
* @param {...*} args The arguments that will be passed to your Job executor
*/
scheduleJob(name, interval, ...args)

/**
* Stop Job's periodic runs
*
* @param {string} name The name of your Job
*/
clearSchedule(name)
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tnt-scheduler",
"version": "1.1.0",
"version": "1.1.1",
"description": "A promise based scheduler with concurrency control",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a6fb667

Please sign in to comment.