Skip to content

timedAsync

timedAsync<T>(label, fn): Promise<T>

Defined in: src/instrument.ts:70

Wrap an async function with wall-time measurement. Same threshold/log behavior as timed. When off, awaits fn() directly.

T

string

() => Promise<T>

Promise<T>