From 3b3c6f4be2785d8533892a72493c3f10d6e5f6cc Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Sun, 5 Jul 2015 17:37:28 -0700 Subject: added clarifications about parallel. Cwqloses #732 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e09b22b..992afe2 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.1