summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormk <me@maxkueng.com>2014-03-28 23:41:16 +0100
committermk <me@maxkueng.com>2014-03-28 23:41:16 +0100
commit4722e785a4ebadba130be1a3d005703871b35233 (patch)
tree999d1a2222a49b817eb0ea0586dfe3f12aad30b2 /README.md
parent28697107d8821a8f3501143a87c9a341e3e9140a (diff)
downloadasync-4722e785a4ebadba130be1a3d005703871b35233.tar.gz
Add queue.pause() and queue.resume()
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index acee1b2..0a87149 100644
--- a/README.md
+++ b/README.md
@@ -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__