Last active
July 6, 2018 02:52
-
-
Save alexpersian/5b1193893f24605aaedf7e9f343daaf4 to your computer and use it in GitHub Desktop.
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
firstly { | |
firstPromise() | |
}.then { data in | |
// This is just passing the data down the chain | |
return secondPromise() | |
}.then { data in | |
// and doesn't do what I was looking for. | |
return thirdPromise() | |
}.done { data in | |
self.process(data) | |
}.catch { error in | |
// handle any error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment