Interface Scoped<F>
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>;
}
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
Properties
Readonlyalive
Readonlyduration
Total wall-time across all completed spans; in-flight spans contribute up to the current clock.
Readonlylast
Readonlyname
name: string
Readonlyruns
Readonlytouched
Signals written during the most recent invocation (self only).
ReadonlytouchedDeep
Signals written during the most recent invocation, plus its descendants.
Scoped factory: callable, carries name + lazy stats.