Skip to content

Instantly share code, notes, and snippets.

@deepal
Created May 1, 2017 12:06
const fs = require('fs');
fs.readFile(__filename, () => {
setTimeout(() => {
console.log('timeout')
}, 0);
setImmediate(() => {
console.log('immediate')
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment