Interface Scoped<F>

    Scoped factory: callable, carries name + lazy stats.

    interface Scoped<F extends AnyFactory> {
        alive: Read<boolean>;
        duration: Read<number>;
        last: Read<Span | undefined>;
        name: string;
        runs: Read<number>;
        touched: Read<readonly Cell<unknown>[]>;
        touchedDeep: Read<readonly Cell<unknown>[]>;
        (...args: Parameters<F>): ReturnType<F>;
    }

    Type Parameters

    • F extends AnyFactory
    • Parameters

      • ...args: Parameters<F>

      Returns ReturnType<F>

    Index

    Properties

    alive: Read<boolean>
    duration: Read<number>

    Total wall-time across all completed spans; in-flight spans contribute up to the current clock.

    last: Read<Span | undefined>
    name: string
    runs: Read<number>
    touched: Read<readonly Cell<unknown>[]>

    Signals written during the most recent invocation (self only).

    touchedDeep: Read<readonly Cell<unknown>[]>

    Signals written during the most recent invocation, plus its descendants.