Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
18
node_modules/seq/examples/join.js
generated
vendored
Normal file
18
node_modules/seq/examples/join.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var Seq = require('seq');
|
||||
Seq()
|
||||
.par(function () {
|
||||
var that = this;
|
||||
setTimeout(function () { that(null, 'a') }, 300);
|
||||
})
|
||||
.par(function () {
|
||||
var that = this;
|
||||
setTimeout(function () { that(null, 'b') }, 200);
|
||||
})
|
||||
.par(function () {
|
||||
var that = this;
|
||||
setTimeout(function () { that(null, 'c') }, 100);
|
||||
})
|
||||
.seq(function (a, b, c) {
|
||||
console.dir([ a, b, c ])
|
||||
})
|
||||
;
|
||||
Reference in New Issue
Block a user