Created
October 14, 2018 14:37
-
-
Save dbrattli/84cfb6b72eefd75fa7bccc49f6a8ac74 to your computer and use it in GitHub Desktop.
Promise Inside 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 last response: %A" res4 | |
) |> ignore | |
) |> ignore | |
) |> ignore | |
) |> ignore | |
|> ignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment