Module For_scheduler.Result

type 'a t =
  1. | Ok of 'a
  2. | Exn of Base.Exn.t * Base.Backtrace.t
val try_with : (Base.unit -> 'a) @ local once -> 'a t @ local unique @@ portable

try_with f runs f, returning Exn if f raises and Ok otherwise.

val ok_exn : 'a t @ local -> 'a @@ portable
val map : 'a t @ local unique -> (f:('a -> 'b) @ local once -> 'b t @ local unique) @ local once @@ portable
val globalize : 'a t @ local unique -> 'a t @ unique @@ portable
module Capsule : sig ... end