Skip to content

@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 โ€‹

ParameterType
logLogger
labelstring
fn() => T | Promise<T>

Returns โ€‹

Promise<T>

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub