package ezjs_min

  1. Overview
  2. Docs
include module type of struct include Promise end
class type ['a, 'b] promise0 = object ... end
class type any = object ... end
type 'a promise = ('a, any Js.t) promise0
type ('a, 'b) promise_cs = ((('a -> unit) -> ('b -> unit) -> unit) Js.callback -> ('a, 'b) promise0 Js.t) Js.constr
val promise : (('a -> unit) -> ('b -> unit) -> unit) -> ('a, 'b) promise0 Js_of_ocaml.Js.t
val jthen : ?error:('b -> unit) -> ('a, 'b) promise0 Js.t -> ('a -> unit) -> unit
val jthen_opt : ('a, 'b) promise0 Js.t -> ('a -> unit) option -> unit
val (>>=) : 'a Lwt.t -> ('a -> 'b Lwt.t) -> 'b Lwt.t
val return : 'a -> 'a Lwt.t
val async : (unit -> unit Lwt.t) -> unit
val return_unit : unit Lwt.t
val to_lwt : 'a promise Js.t -> ('a, any Js.t) Js.result Lwt.t
val to_lwt_opt : ('a -> 'b) option -> 'a promise Js.t -> ('b option, any Js.t) Js.result Lwt.t
val to_lwt_tr : ('a -> 'b) -> 'a promise Js.t -> ('b, any Js.t) Js.result Lwt.t
val to_lwt_exn : 'a promise Js.t -> 'a Lwt.t
val to_lwt_exn_opt : ('a -> 'b) option -> 'a promise Js.t -> 'b option Lwt.t
val to_lwt_exn_tr : ('a -> 'b) -> 'a promise Js.t -> 'b Lwt.t
val to_lwt_cb0 : (('a -> unit) -> 'b) -> 'a Lwt.t
val to_lwt_cb : (('a, 'b -> unit) Js.meth_callback -> 'c) -> 'b Lwt.t
val to_lwt_cb_tr : ('a -> 'b) -> (('c, 'a -> unit) Js.meth_callback -> 'd) -> 'b Lwt.t
val to_lwt_cb_opt : ('a -> 'b) option -> (('c, 'a -> unit) Js.meth_callback Js.optdef -> 'd) -> 'b option Lwt.t
val promise_lwt : 'a Lwt.t -> ('a, 'b) promise0 Js_of_ocaml.Js.t
val promise_lwt_res : ('a, 'b) Js.result Lwt.t -> ('a, 'b) promise0 Js_of_ocaml.Js.t
OCaml

Innovation. Community. Security.