Internal_pervasives.Asynchronous_resultA wrapper around ('ok, 'a Error.t) result Lwt.t.
type ('ok, 'error) t = ('ok, 'error) Attached_result.t Lwt.tval fail : ?attach:(string * Attached_result.content) list -> 'a -> ('b, 'c) tval bind_on_error :
('a, 'b) t ->
f:
(result:('c, 'b) Attached_result.t ->
'b ->
('a, 'd) Attached_result.t Lwt.t) ->
('a, 'd) tval transform_error :
('a, 'b) Attached_result.t Lwt.t ->
f:('c -> 'd) ->
('e, 'f) Attached_result.t Lwt.tval bind_all :
('ok, 'error) t ->
f:(('ok, 'error) Attached_result.t -> ('ok2, 'error2) t) ->
('ok2, 'error2) tmodule M : sig ... endThe module opened everywhere.
module Std : sig ... endinclude module type of struct include M endThe module opened everywhere.
module Let_syntax = M.Let_syntaxmodule Monad_infix = M.Monad_infixval return : 'a -> ('a0, 'b) tval run : (unit -> ('a, 'b) result Lwt.t) -> ('c -> 'd) -> 'eval die : 'a -> ('b, [> `Die of 'a ]) tmodule List_sequential : sig ... endmodule Loop : sig ... endmodule Stream : sig ... endval run_application :
?lwt_run:
((unit, [< `Die of int ] as 'a) Attached_result.t Lwt.t ->
(unit, 'a) Attached_result.t) ->
(unit -> (unit, 'b) t) ->
unit