Skip to content

Instantly share code, notes, and snippets.

@bmeck
Created February 19, 2016 16:01
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 bmeck/15b0c96e119f7cf26273 to your computer and use it in GitHub Desktop.
Save bmeck/15b0c96e119f7cf26273 to your computer and use it in GitHub Desktop.
var af,bf;
var a = new Promise(f=>af=f)
var b = new Promise(f=>bf=f)
af(b);
bf(a);
a.then(
_ => console.log('af',_),
_ => console.log('ar',_)
);
b.then(
_ => console.log('bf',_),
_ => console.log('br',_)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment