Class Deferred<T>

Simple implementation of the deferred pattern. An object that exposes a promise and functions to resolve and reject it.

Type Parameters

  • T = void

Constructors

Properties

Constructors

Properties

promise: Promise<T> = ...
reject: ((err?: unknown) => this)
resolve: ((value: T) => this)