package async_kernel
Module Eager_deferred.Or_errorSource
Source
val of_exn_result :
?backtrace:[ `Get | `This of string ] ->
('a, exn) Core.Result.t Async_kernel.Deferred.t ->
'a tSource
val try_with :
?extract_exn:bool ->
?run:[ `Now | `Schedule ] ->
?rest:[ `Log | `Raise | `Call of exn -> unit ] ->
?here:Lexing.position ->
?name:string ->
(unit -> 'a Async_kernel.Deferred.t) ->
'a tNote that try_with f is eager only in the Ok case.
Source
val try_with_join :
?extract_exn:bool ->
?run:[ `Now | `Schedule ] ->
?rest:[ `Log | `Raise | `Call of exn -> unit ] ->
?here:Lexing.position ->
?name:string ->
(unit -> 'a t) ->
'a tNote that try_with_join f is eager only when no exception is raised by f.