Module Js_of_ocaml_webidl__.Promise

type 'a t
val _Promise : 'a
val _catch : 'a t Js_of_ocaml.Js.t -> ('b -> 'a t Js_of_ocaml.Js.t) -> 'a t Js_of_ocaml.Js.t
val _then : 'a t Js_of_ocaml.Js.t -> ?⁠catch:('c -> 'b t Js_of_ocaml.Js.t) -> ('a -> 'b t Js_of_ocaml.Js.t) -> 'b t Js_of_ocaml.Js.t
val resolve_value : 'a -> 'a t Js_of_ocaml.Js.t
val resolve_promise : 'a t Js_of_ocaml.Js.t -> 'a t Js_of_ocaml.Js.t
val reject_value : 'a -> 'a t Js_of_ocaml.Js.t
val reject_promise : 'a t Js_of_ocaml.Js.t -> 'a t Js_of_ocaml.Js.t
val race : 'a t Js_of_ocaml.Js.t Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t -> 'a t Js_of_ocaml.Js.t
val all : 'a t Js_of_ocaml.Js.t Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t -> 'a t Js_of_ocaml.Js.t