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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
() => Promise<T>
Returns
Section titled “Returns”Promise<T>