Module Async_kernel.Execution_context

The context in which an Async job runs.

type t = Async_kernel__.Types.Execution_context.t = {
monitor : Async_kernel__.Monitor0.t;
priority : Priority.t;
local_storage : Core_kernel.Univ_map.t;
backtrace_history : Core_kernel.Backtrace.t list;
}
val backtrace_history : t -> Core_kernel.Backtrace.t list
val local_storage : t -> Core_kernel.Univ_map.t
val priority : t -> Priority.t
val monitor : t -> Async_kernel__.Monitor0.t
module Fields : sig ... end
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
include Core_kernel.Invariant.S with type t := t
type t
val invariant : t Base__.Invariant_intf.inv
val main : t
val create_like : ?⁠monitor:Async_kernel__.Monitor0.t -> ?⁠priority:Priority.t -> ?⁠local_storage:Core_kernel.Univ_map.t -> t -> t
val find_local : t -> 'a Core_kernel.Univ_map.Key.t -> 'a option
val with_local : t -> 'a Core_kernel.Univ_map.Key.t -> 'a option -> t
val record_backtrace : t -> t