Skip to content

Instantly share code, notes, and snippets.

@dbrattli
Created October 14, 2018 14:37
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 dbrattli/84cfb6b72eefd75fa7bccc49f6a8ac74 to your computer and use it in GitHub Desktop.
Save dbrattli/84cfb6b72eefd75fa7bccc49f6a8ac74 to your computer and use it in GitHub Desktop.
Promise Inside Chaining
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