Effect_throttling.Poll_resulttype 'a t = 'a Cont.Effect_throttling.Poll_result.t = include Sexplib0.Sexpable.S1 with type 'a t := 'a tval t_of_sexp : 'a. (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a tval sexp_of_t : 'a. ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.tinclude Ppx_compare_lib.Equal.S1 with type 'a t := 'a tval collapse_to_or_error :
?tag_s:Core.Sexp.t lazy_t ->
'a Core.Or_error.t t ->
'a Core.Or_error.tCollapses values of type 'a Or_error.t t a plain Or_error.t, where the Aborted case is transformed into an error.
The tag_s parameter can be used to add additional info to the error.
val collapse_fun_to_or_error :
?sexp_of_input:('a -> Core.Sexp.t) ->
('a -> 'b Core.Or_error.t t Effect.t) ->
'a ->
'b Core.Or_error.t Effect.tLike collapse_to_or_error, but transforms a function that returns an 'a Or_error.t t instead of just the value.