package ezjs_min

  1. Overview
  2. Docs
class type ['a, 'b] promise0 = object ... end
type 'a promise = ('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) promise0
type ('a, 'b) promise_cs = ((unit, ('a -> unit) -> ('b -> unit) -> unit) Js_of_ocaml.Js.meth_callback -> ('a, 'b) promise0 Js_of_ocaml.Js.t) Js_of_ocaml.Js.constr
val promise : (('a -> unit) -> (Ezjs_min__.Js.error Js_of_ocaml.Js.t -> unit) -> unit) -> ('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t
val jthen0 : ?error:('b Js_of_ocaml__Js.t -> unit) -> ('a, 'b Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t -> ('a -> unit) -> unit
val jthen : ?error:(Ezjs_min__.Js.error Js_of_ocaml.Js.t -> unit) -> 'a promise Js_of_ocaml.Js.t -> ('a -> unit) -> unit
val jthen0_opt : ('a, 'b Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t -> ('a -> unit) option -> unit
val jthen_opt : 'a promise Js_of_ocaml.Js.t -> ('a -> unit) option -> unit
val rthen : 'a promise Js_of_ocaml.Js.t -> (('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) result -> unit) -> unit
OCaml

Innovation. Community. Security.