Permalink
Browse files

👷 fix typo

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

0 comments on commit 2616cbe

Please sign in to comment.