Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Grondin committed Oct 26, 2019
1 parent 8a8bde9 commit 522e176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ limiter.schedule(() => object.doSomething());

* **When using `submit()`**, make sure all the jobs will eventually complete by calling their callback, or set an [`expiration`](#job-options). Even if you submitted your job with a `null` callback , it still needs to call its callback. This is particularly important if you are using a `maxConcurrent` value that isn't `null` (unlimited), otherwise those not completed jobs will be clogging up the limiter and no new jobs will be allowed to run. It's safe to call the callback more than once, subsequent calls are ignored.

* Using tools like `mockdate` in your tests to change time in JavaScript will likely result in undefined behavior from Bottleneck.

## Docs

### Constructor
Expand Down

0 comments on commit 522e176

Please sign in to comment.