Skip to content

Instantly share code, notes, and snippets.

Created February 3, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9936c695f2c29e79a0c1a0dec863abea to your computer and use it in GitHub Desktop.
Save anonymous/9936c695f2c29e79a0c1a0dec863abea to your computer and use it in GitHub Desktop.
> $ node
> var bluebird = require('bluebird');
undefined
> function f() {
... Promise.resolve().then(() => console.log('1'));
... bluebird.resolve().then(() => console.log('2'));
... Promise.resolve().then(() => console.log('3'));
... }
undefined
> f()
undefined
> 1
3
2
> function f() {
... Promise.resolve().then(() => console.log('1'));
... Promise.resolve().then(() => console.log('2'));
... Promise.resolve().then(() => console.log('3'));
... }
undefined
> f()
undefined
> 1
2
3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment