Skip to content

Commit 3b3c6f4

Browse files
committed
added clarifications about parallel. Cwqloses caolan#732
1 parent 6ef3167 commit 3b3c6f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,8 @@ callback, the main `callback` is immediately called with the value of the error.
749749
Once the `tasks` have completed, the results are passed to the final `callback` as an
750750
array.
751751
752+
**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.
753+
752754
It is also possible to use an object instead of an array. Each property will be
753755
run as a function and the results will be passed to the final `callback` as an object
754756
instead of an array. This can be a more readable way of handling results from

0 commit comments

Comments
 (0)