Fable.Promise is a library making it easy to work with Promise.
It provides two styles of APIs
fetch "https://my-api.com/users"
|> Promise.map (fun user ->
fetch "https://my-api.com/posts"
)
|> Promise.map (fun posts ->
fetch "https://my-api.com/comments"
)
|> Promise.map (fun comments ->
// Done
)
promise {
let! users = fetch "https://my-api.com/users"
let! posts = fetch "https://my-api.com/posts"
let! comments = fetch "https://my-api.com/comments"
// Done success
return ()
}