Last active
October 14, 2018 15:59
-
-
Save dbrattli/16078edf0f13a4c240dad9dd95fc8d64 to your computer and use it in GitHub Desktop.
Promise Outside Chaining
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
fetch("http://test1") | |
.Then(fun res1 -> fetch "http://test2") | |
.Then(fun res2 -> fetch "http://test3") | |
.Then(fun res3 -> fetch "http://test4") | |
.Then(fun res4 -> | |
printfn "Got response %A" res4 | |
) | |
|> ignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment