Skip to content

Instantly share code, notes, and snippets.

@dbrattli
Last active October 14, 2018 15:59
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/16078edf0f13a4c240dad9dd95fc8d64 to your computer and use it in GitHub Desktop.
Save dbrattli/16078edf0f13a4c240dad9dd95fc8d64 to your computer and use it in GitHub Desktop.
Promise Outside 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 response %A" res4
)
|> ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment