bs-sentia-promise
v0.3.0
Published
promise library for Ocaml/Reason based on javascript promises.
Downloads
1
Readme
bs-promise
promise library for Ocaml/Reason based on javascript promises.
example:
Promise.make (fun reject resolve => resolve "Hello")
|> Promise.map (fun s => s ^ ", World!")
|> Promise.finally (fun err => print_endline @@ "Error: " ^ err) (fun s => print_endline s );
Read the promise.rei file for the api.