Permalink
Browse files

👷 fix typo

  • Loading branch information...
maxpou committed Jan 23, 2017
1 parent 2661add commit 2616cbecc713389f8455b066711bc74891a593a6
Showing with 17 additions and 17 deletions.
  1. +17 −17 script.js
View
@@ -1,20 +1,20 @@
sleep = (ms) {
sleep = (ms) => {
return new Promise(r => setTimeout(r, ms))
},
};
delay(100 )
.then(function STEP2(){
console.log("step 2 (after 100ms)");
return delay(200 );
})
.then(function STEP3(){
console.log("step 3 (after another 200ms)" );
})
.then(function STEP4(){
console.log("step 4 (next Job)");
return delay( 50 );
})
.then(function STEP5(){
console.log("step 5 (after another 55ms)" );
})
sleep(100)
.then(function STEP2 () {
console.log("step 2 (after 100ms)");
return sleep(200);
})
.then(function STEP3 () {
console.log("step 3 (after another 200ms)");
})
.then(function STEP4 () {
console.log("step 4 (next Job)");
return sleep(50);
})
.then(function STEP5 () {
console.log("step 5 (after another 50ms)");
})

0 comments on commit 2616cbe

Please sign in to comment.