Skip to content

Instantly share code, notes, and snippets.

@alexpersian
Last active July 6, 2018 02:52
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 alexpersian/5b1193893f24605aaedf7e9f343daaf4 to your computer and use it in GitHub Desktop.
Save alexpersian/5b1193893f24605aaedf7e9f343daaf4 to your computer and use it in GitHub Desktop.
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