Created
July 3, 2017 08:10
-
-
Save tmpaul06/3b0e755d03d63eb1d7499d8e9712f3b8 to your computer and use it in GitHub Desktop.
Promise chain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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