diff options
author | mk <me@maxkueng.com> | 2014-03-28 23:41:16 +0100 |
---|---|---|
committer | mk <me@maxkueng.com> | 2014-03-28 23:41:16 +0100 |
commit | 4722e785a4ebadba130be1a3d005703871b35233 (patch) | |
tree | 999d1a2222a49b817eb0ea0586dfe3f12aad30b2 /README.md | |
parent | 28697107d8821a8f3501143a87c9a341e3e9140a (diff) | |
download | async-4722e785a4ebadba130be1a3d005703871b35233.tar.gz |
Add queue.pause() and queue.resume()
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1088,6 +1088,9 @@ methods: and further tasks will be queued. * `empty` - a callback that is called when the last item from the `queue` is given to a `worker`. * `drain` - a callback that is called when the last item from the `queue` has returned from the `worker`. +* `paused` - a boolean for determining whether the queue is in a paused state +* `pause()` - a function that pauses the processing of tasks until `resume()` is called. +* `resume()` - a function that resumes the processing of queued tasks when the queue is paused. __Example__ |