Skip to content

timeAsync

timeAsync<T>(event, fn, data?): Promise<T>

Defined in: packages/client/src/debug.ts:142

Run fn, logging <event> done with its wall-clock duration (and any extra data). When instrumentation is off this is a thin pass-through with no logging and no timing overhead beyond the call itself. Returns whatever fn returns.

T

string

() => Promise<T>

Record<string, unknown>

Promise<T>