package async_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The context in which an Async job runs.

type t = {
  1. monitor : Async_kernel__.Types.Monitor.t;
  2. priority : Priority.t;
  3. local_storage : Core.Univ_map.t;
  4. backtrace_history : Core.Backtrace.t list;
}
val backtrace_history : t -> Core.Backtrace.t list
val local_storage : t -> Core.Univ_map.t
val priority : t -> Priority.t
val monitor : t -> Async_kernel__.Types.Monitor.t
module Fields : sig ... end
val sexp_of_t : t -> Sexplib0.Sexp.t
include Core.Invariant.S with type t := t
val invariant : t -> unit
val main : t
val create_like : ?monitor:Async_kernel__.Types.Monitor.t -> ?priority:Priority.t -> ?local_storage:Core.Univ_map.t -> t -> t
val find_local : t -> 'a Core.Univ_map.Key.t -> 'a option
val with_local : t -> 'a Core.Univ_map.Key.t -> 'a option -> t
val record_backtrace : t -> t
OCaml

Innovation. Community. Security.