@lelantos-org/sdk / log / timed
Function: timed() โ
ts
function timed<T>(
log,
label,
fn
): Promise<T>;Defined in: @lelantos-org/sdk/dist/log/timed.d.ts:3
Time an async span, emitting one debug record when logging is on.
Type Parameters โ
| Type Parameter |
|---|
T |
Parameters โ
| Parameter | Type |
|---|---|
log | Logger |
label | string |
fn | () => T | Promise<T> |
Returns โ
Promise<T>