package async

  1. Overview
  2. Docs
include module type of struct include Async_kernel.Deferred.Or_error end
module Deferred : sig ... end
type 'a t = 'a Core.Or_error.t Deferred.t
val both : 'a t -> 'b t -> ('a * 'b) t
val (<*>) : ('a -> 'b) t -> 'a t -> 'b t
val (<*) : 'a t -> unit t -> 'a t
val (*>) : unit t -> 'a t -> 'a t
val apply : ('a -> 'b) t -> 'a t -> 'b t
val map2 : 'a t -> 'b t -> f:('a -> 'b -> 'c) -> 'c t
val map3 : 'a t -> 'b t -> 'c t -> f:('a -> 'b -> 'c -> 'd) -> 'd t
module Applicative_infix : sig ... end
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val (>>|) : 'a t -> ('a -> 'b) -> 'b t
module Monad_infix : sig ... end
val bind : 'a t -> f:('a -> 'b t) -> 'b t
val return : 'a -> 'a t
val map : 'a t -> f:('a -> 'b) -> 'b t
val join : 'a t t -> 'a t
val ignore_m : 'a t -> unit t
val all : 'a t list -> 'a list t
val all_unit : unit t list -> unit t
module Let_syntax : sig ... end
val fail : Core.Error.t -> 'a t
val ok_exn : 'a t -> 'a Deferred.t
val of_exn : exn -> 'a t
val of_exn_result : ('a, exn) Core.Result.t Deferred.t -> 'a t
val error : string -> 'a -> ('a -> Core.Sexp.t) -> 'b t
val error_s : Core.Sexp.t -> 'a t
val error_string : string -> 'a t
val errorf : ('a, unit, string, 'b t) Core.format4 -> 'a
val tag : 'a t -> tag:string -> 'a t
val tag_s : 'a t -> tag:Core.Sexp.t -> 'a t
val tag_s_lazy : 'a t -> tag:Core.Sexp.t Core.Lazy.t -> 'a t
val tag_arg : 'a t -> string -> 'b -> ('b -> Core.Sexp.t) -> 'a t
val unimplemented : string -> 'a t
val combine_errors : 'a t list -> 'a list t
val combine_errors_unit : unit t list -> unit t
val filter_ok_at_least_one : 'a t list -> 'a list t
val find_map_ok : 'a list -> f:('a -> 'b t) -> 'b t
val ok_unit : unit t
val try_with : ?extract_exn:bool -> ?run:[ `Now | `Schedule ] -> ?rest:[ `Call of exn -> unit | `Log | `Raise ] -> ?here:Stdlib.Lexing.position -> ?name:string -> (unit -> 'a Deferred.t) -> 'a t
val try_with_join : ?extract_exn:bool -> ?run:[ `Now | `Schedule ] -> ?rest:[ `Call of exn -> unit | `Log | `Raise ] -> ?here:Stdlib.Lexing.position -> ?name:string -> (unit -> 'a t) -> 'a t
module List : sig ... end
val repeat_until_finished : 'state -> ('state -> [ `Finished of 'result | `Repeat of 'state ] t) -> 'result t
module Expect_test_config : sig ... end
OCaml

Innovation. Community. Security.