diff options
author | Caolan McMahon <caolan.mcmahon@gmail.com> | 2014-03-28 12:40:40 +0000 |
---|---|---|
committer | Caolan McMahon <caolan.mcmahon@gmail.com> | 2014-03-28 12:40:40 +0000 |
commit | 287cb65116c34f5fff1b953c6b9a95bce0a3dbde (patch) | |
tree | 3fca63531f46d3b4a33da2583565137b4f2ff165 /README.md | |
parent | f8cb033c279dc06504cefca66b17c1117b9dcf26 (diff) | |
parent | 4e2da57ce97d0fc5a12afa271f46efeb47a88830 (diff) | |
download | async-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.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |