summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCaolan McMahon <caolan.mcmahon@gmail.com>2014-03-28 12:40:40 +0000
committerCaolan McMahon <caolan.mcmahon@gmail.com>2014-03-28 12:40:40 +0000
commit287cb65116c34f5fff1b953c6b9a95bce0a3dbde (patch)
tree3fca63531f46d3b4a33da2583565137b4f2ff165 /README.md
parentf8cb033c279dc06504cefca66b17c1117b9dcf26 (diff)
parent4e2da57ce97d0fc5a12afa271f46efeb47a88830 (diff)
downloadasync-287cb65116c34f5fff1b953c6b9a95bce0a3dbde.tar.gz
Merge pull request #441 from dandv/patch-1
Clarify how cargo differs from queue
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index c093f7b..fd9282a 100644
--- a/README.md
+++ b/README.md
@@ -1024,6 +1024,10 @@ cargo will be processed altogether (up to the `payload` limit). If the
`worker` is in progress, the task is queued until it becomes available. Once
the `worker` has completed some tasks, each callback of those tasks is called.
+While [queue](#queue) passes only one task to one of a group of workers
+at a time, cargo passes an array of tasks to a single worker, repeating
+when the worker is finished.
+
__Arguments__
* `worker(tasks, callback)` - An asynchronous function for processing an array of