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