Brand marker used by Runner for registration and runtime checks.
File path where this async context was defined.
OptionalconfigOptional normalized validation schema associated with the context value.
ReadonlyidStable public context id.
Reports whether a value is currently active for this context.
Returns an optional dependency wrapper for this context.
Creates task middleware that fails fast when this context is missing.
Serializes the current value for transport or persistence scenarios.
Returns the current value when available, otherwise undefined.
Returns the current value or throws when no active value exists.
Runtime async-context accessor returned by
defineAsyncContext(...).Async contexts carry per-execution values across async boundaries and can be required by middleware when a task must run inside an active context.