Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
👷 fix typo
  • Loading branch information
maxpou committed Jan 23, 2017
1 parent 2661add commit 2616cbe
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions script.js
@@ -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.