Last active
December 24, 2018 18:58
-
-
Save rajikaimal/6480c7cb16b2adf9081f57a108c8230a to your computer and use it in GitHub Desktop.
Revisions
-
rajikaimal revised this gist
Dec 24, 2018 . No changes.There are no files selected for viewing
-
rajikaimal revised this gist
Dec 24, 2018 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,12 +2,12 @@ function iter(num) { if(num > 5) return; setImmediate(() => { console.log('SetImmediate'); }); process.nextTick(() => { console.log(`NextTick, iteration ${num}`); iter(num + 1); }); } -
rajikaimal revised this gist
Dec 24, 2018 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ function iter(num) { if(num > 5) return; setImmediate(() => { console.log('SetImmediate'); }); process.nextTick(() => { console.log(`NextTick, iteration ${num}`); iter(num + 1); }); } iter(0); -
rajikaimal revised this gist
Dec 24, 2018 . 1 changed file with 14 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,17 @@ function iter(num) { }); } iter(0); // NextTick, iteration 0 // NextTick, iteration 1 // NextTick, iteration 2 // NextTick, iteration 3 // NextTick, iteration 4 // NextTick, iteration 5 // SetImmediate // SetImmediate // SetImmediate // SetImmediate // SetImmediate // SetImmediate -
rajikaimal created this gist
Dec 24, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ function iter(num) { if(num > 5) return; setImmediate(() => { console.log('SetImmediate'); }); process.nextTick(() => { console.log(`NextTick, iteration ${num}`); iter(num + 1); }); } iter(0);