Skip to content

Instantly share code, notes, and snippets.

Created Jul 3, 2017
What would you like to do?
Promise chain
// domeSomethingAsync is the first promise.
var result = doSomethingAsync()
// It has a `then` method for chaining
// result is a different Promise. It has its own then method
result.then(...) => returns another new Promise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment