Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Deferred<T>

Implementation of the Deferred API to simplify handling of Promises.

Type parameters

  • T

Hierarchy

  • Deferred

Index

Constructors

Properties

Constructors

constructor

Properties

promise

promise: Promise<T>

reject

reject: (reason: unknown) => void

Type declaration

    • (reason: unknown): void
    • Parameters

      • reason: unknown

      Returns void

resolve

resolve: (value: T) => void

Type declaration

    • (value: T): void
    • Parameters

      • value: T

      Returns void