Last active
January 30, 2019 16:05
-
-
Save dimebt/280866b501fa30aa17d2cca028ecdcf3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { | |
| promise1() | |
| }.then { | |
| promise2() | |
| }.then { | |
| promise3() | |
| }.ensure { | |
| // something that should happen whatever the outcome | |
| }.done { | |
| // all promises are resolved | |
| // handle final logic here | |
| }.catch { | |
| // handle error here | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment