Skip to content

Instantly share code, notes, and snippets.

@tmpaul06
Created July 3, 2017 08:10
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 tmpaul06/3b0e755d03d63eb1d7499d8e9712f3b8 to your computer and use it in GitHub Desktop.
Save tmpaul06/3b0e755d03d63eb1d7499d8e9712f3b8 to your computer and use it in GitHub Desktop.
Promise chain
// domeSomethingAsync is the first promise.
var result = doSomethingAsync()
// It has a `then` method for chaining
.then(...)
// 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