UNPKG

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