Implementation of the Deferred API to simplify handling of Promises.

Type Parameters

  • T

Constructors

Properties

Constructors

Properties

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

Type declaration

    • (value): void
    • Parameters

      • value: T

      Returns void

reject: ((reason) => void)

Type declaration

    • (reason): void
    • Parameters

      • reason: unknown

      Returns void