Skip to content

Commit

Permalink
added clarifications about parallel. Cwqloses #732
Browse files Browse the repository at this point in the history
  • Loading branch information
aearly committed Jul 6, 2015
1 parent 6ef3167 commit 3b3c6f4
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 @@ -749,6 +749,8 @@ callback, the main `callback` is immediately called with the value of the error.
Once the `tasks` have completed, the results are passed to the final `callback` as an
array.
**Note:** `parallel` is about kicking-off I/O tasks in parallel, not about parallel execution of code. If your tasks do not use any timers or perform any I/O, they will actually be executed in series. Any synchronous setup sections for each task will happen one after the other. JavaScript remains single-threaded.
It is also possible to use an object instead of an array. Each property will be
run as a function and the results will be passed to the final `callback` as an object
instead of an array. This can be a more readable way of handling results from
Expand Down

0 comments on commit 3b3c6f4

Please sign in to comment.