Skip to content

@acala-network/chopsticks-coreDocs


@acala-network/chopsticks-core / Deferred

Type Alias: Deferred<T>

Deferred<T>: object

Type Parameters

T

Type declaration

promise

promise: Promise<T>

reject()

reject: (reason?) => void

Parameters

reason?: any

Returns

void

resolve()

resolve: (value) => void

Parameters

value: T | PromiseLike<T>

Returns

void

Defined in

packages/core/src/utils/index.ts:67