Skip to content

@lelantos-org/sdk / core / safeCall

Function: safeCall() โ€‹

ts
function safeCall<A>(
   name, 
   cb, 
   arg
): void;

Defined in: @lelantos-org/sdk/dist/core/callbacks.d.ts:5

Invoke a caller-supplied callback, swallowing (and logging) any throw. Use for every user-provided hook that fires mid-operation.

Type Parameters โ€‹

Type Parameter
A

Parameters โ€‹

ParameterType
namestring
cb((arg) => void) | undefined
argA

Returns โ€‹

void

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