Fable.Promise

Fable.Promise is a library making it easy to work with Promise.

It provides two styles of APIs

Pipeline API

Pipeline allows you to write similar to JavaScript code.

Learn more →
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
)

Computation expressions

Computation expressions make it easy to chain operations

Learn more →
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 ()
}