Skip to content

Instantly share code, notes, and snippets.

@deepal
Created February 26, 2019 23:42
Show Gist options
  • Select an option

  • Save deepal/4a2afba0f1bf651befacfcfa6a86fc95 to your computer and use it in GitHub Desktop.

Select an option

Save deepal/4a2afba0f1bf651befacfcfa6a86fc95 to your computer and use it in GitHub Desktop.
setImmediate(() => console.log('timeout1'));
setImmediate(() => {
console.log('timeout2')
process.nextTick(() => console.log('next tick'))
});
setImmediate(() => console.log('timeout3'));
setImmediate(() => console.log('timeout4'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment