@bluelibs/runner - v6.3.1
    Preparing search index...

    Interface ExecutionContextAccessor

    Built-in async-context accessor for execution tracing.

    interface ExecutionContextAccessor {
        id: "executionContext";
        has(): boolean;
        provide<T>(fn: () => T): T;
        provide<T>(options: ExecutionContextProvideOptions, fn: () => T): T;
        record<T>(fn: () => T): Promise<ExecutionRecordResult<Awaited<T>>>;
        record<T>(
            options: ExecutionContextProvideOptions,
            fn: () => T,
        ): Promise<ExecutionRecordResult<Awaited<T>>>;
        tryUse(): ExecutionContextSnapshot | undefined;
        use(): ExecutionContextSnapshot;
    }
    Index

    Properties

    Methods

    Properties

    id: "executionContext"

    Stable id of the built-in execution async context.

    Methods