1 | var test = function(value, callback) {
|
2 | console.log('called');
|
3 | callback(value);
|
4 | };
|
5 |
|
6 | parallel(
|
7 | test(1, cont(a)),
|
8 | test(2, cont(b)),
|
9 | test(3, cont(c))
|
10 | );
|
11 | console.log(a, b, c);
|
12 |
|
13 | parallel(
|
14 | test(4, cont(d)),
|
15 | test(5, cont(e)),
|
16 | test(6, cont(f))
|
17 | );
|
18 | console.log(d, e, f);
|
19 |
|