Module Kxclib_melange_promise.Promise
type +'a t = 'a Js.Promise.t
exception JsError of Js.Exn.t
val unsafeToJsExn : exn -> Js.Exn.t
val make : (('a -> unit) -> ('e -> unit) -> unit) -> 'a t
val then_ : 'a t -> ('a -> 'b t) -> 'b t
val thenResolve : 'a t -> ('a -> 'b) -> 'b t
val finally : 'a t -> (unit -> unit) -> 'b t
val all : 'a t array -> 'a array t
val race : 'a t array -> 'a t
val _catch : 'a t -> (exn -> 'a t) -> 'a t
val catch : 'a t -> (exn -> 'a t) -> 'a t