Skip to content

Instantly share code, notes, and snippets.

@simevidas
Created June 7, 2014 11:21
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 simevidas/26cd7ca5bc6e34875b39 to your computer and use it in GitHub Desktop.
Save simevidas/26cd7ca5bc6e34875b39 to your computer and use it in GitHub Desktop.
New ECMAScript 6 API
// global constructor
Promise
.all( iterable )
.race( iterable )
.reject( r)
.resolve( x )
.prototype
.catch( onRejected )
.then( onFulfilled, onRejected )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment