Implementation of the Deferred API to simplify handling of Promises.

Type Parameters

  • T

Hierarchy

  • Deferred

Properties

Constructors

Properties

promise: Promise<T>
resolve: ((value: T) => void)

Type declaration

    • (value: T): void
    • Parameters

      • value: T

      Returns void

reject: ((reason: unknown) => void)

Type declaration

    • (reason: unknown): void
    • Parameters

      • reason: unknown

      Returns void

Constructors