Created
February 26, 2016 21:57
-
-
Save fl0w/f8a0ffa891732f0cba34 to your computer and use it in GitHub Desktop.
This file contains 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 characters
'use strict' | |
let i = setInterval(() => { | |
console.log('x') | |
}, 0) | |
function run() { | |
console.log('.') | |
process.nextTick(run) | |
} | |
run() | |
// only prints `.` | |
// expecting to see `x` at times. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment