caolan/async — Issue #76: async.auto - tasks with same dependencies being executed sequentially
Author: insin
Created: 2012-01-06 20:14:39+00:00
State: open

Sample code and output:

https://gist.github.com/1570856#file_03_test.js
https://gist.github.com/1570856#file_04_sample.out

Execution flow I'm trying to get:

```
1.1 1.2
| |
| 2
| |
+--+--+
|
+--+--+
| |
3.1 3.2
| |
+--+--+
|
end
```

Execution flow I'm getting:

```
1.1 1.2
| |
| 2
| |
+--+--+
|
3.2
|
3.1
|
end
```

I had a quick hack at the code and replacing the `_forEach` in `taskComplete` with a call to `async.parallel` seems to make this flow work as expected, but I can't see why it doesn't already, as the test tasks are all acting async-ly with setTimeout.