package ezjs_min

  1. Overview
  2. Docs
A bunch of js_of_ocaml shortcuts

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.0.tar.gz
md5=6475db585f4df50c079798ed0f028d87
sha512=10f851f60a169ae20898a286256b911faa83705a3a92f3aaa65fb0a5cb093710dbbc22d86140b03501f7e307dc4fbea0fced7448bc88c4e526b7e35ae4c474ec

doc/ezjs_min.lwt/Ezjs_min_lwt/Promise/index.html

Module Ezjs_min_lwt.PromiseSource

include module type of struct include Ezjs_min.Promise end
Sourceclass type ['a, 'b] promise0 = object ... end
Sourceclass type 'a promise = ['a, Ezjs_min__.Js.error Js_of_ocaml.Js.t] promise0
Sourcetype ('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
Sourceval promise : (('a -> unit) -> ('b -> unit) -> unit) -> ('a, 'b) promise0 Js_of_ocaml.Js.t
Sourceval 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
Sourceval jthen : ?error:(Js_of_ocaml.Js.Js_error.error_t -> unit) -> 'a promise Js_of_ocaml.Js.t -> ('a -> unit) -> unit
Sourceval jthen0_opt : ('a, 'b Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t -> ('a -> unit) option -> unit
Sourceval jthen_opt : 'a promise Js_of_ocaml.Js.t -> ('a -> unit) option -> unit
Sourceval rthen : 'a promise Js_of_ocaml.Js.t -> (('a, Js_of_ocaml.Js.Js_error.error_t) result -> unit) -> unit
Sourceval (>>=) : 'a Lwt.t -> ('a -> 'b Lwt.t) -> 'b Lwt.t
Sourceval (>|=) : 'a Lwt.t -> ('a -> 'b) -> 'b Lwt.t
Sourceval return : 'a -> 'a Lwt.t
Sourceval async : (unit -> unit Lwt.t) -> unit
Sourceval return_unit : unit Lwt.t
Sourceval (>>=?) : ('a, 'b) result Lwt.t -> ('a -> ('c, 'b) result Lwt.t) -> ('c, 'b) result Lwt.t
Sourceval (>>|?) : ('a, 'b) result Lwt.t -> ('a -> 'c) -> ('c, 'b) result Lwt.t
Sourceval to_lwt : 'a promise t -> ('a, Js_of_ocaml.Js.Js_error.error_t) result Lwt.t
Sourceval to_lwt_opt : ('a -> 'b) option -> 'a promise t -> ('b option, Js_of_ocaml.Js.Js_error.error_t) result Lwt.t
Sourceval to_lwt_tr : ('a -> 'b) -> 'a promise t -> ('b, Js_of_ocaml.Js.Js_error.error_t) result Lwt.t
Sourceval to_lwt_exn : 'a promise t -> 'a Lwt.t
Sourceval to_lwt_exn_opt : ('a -> 'b) option -> 'a promise t -> 'b option Lwt.t
Sourceval to_lwt_exn_tr : ('a -> 'b) -> 'a promise t -> 'b Lwt.t
Sourceval to_lwt_cb0 : (('a -> unit) -> 'b) -> 'a Lwt.t
Sourceval to_lwt_cb : (('a, 'b -> unit) meth_callback -> 'c) -> 'b Lwt.t
Sourceval to_lwt_cb_tr : ('a -> 'b) -> (('c, 'a -> unit) meth_callback -> 'd) -> 'b Lwt.t
Sourceval to_lwt_cb_opt : ('a -> 'b) option -> (('c, 'a -> unit) meth_callback optdef -> 'd) -> 'b option Lwt.t
Sourceval promise_lwt : 'a Lwt.t -> ('a, 'b) promise0 Js_of_ocaml.Js.t
Sourceval promise_lwt_res : ('a, 'b) result Lwt.t -> ('a, 'b) promise0 Js_of_ocaml.Js.t
OCaml

Innovation. Community. Security.