Deferred<T>

Wrapper class for promise with external resolve and reject.

Type parameters

  • T

Hierarchy

  • Deferred

Index

Constructors

Properties

Constructors

constructor

Find examples in Playground
  • Constructor for this deferred object.

    Returns Deferred

Properties

promise

Find examples in Playground
promise: Promise<T>

The promise associated with this deferred object.

reject

Find examples in Playground
reject: function

The reject method of the promise associated with this deferred object.

Type declaration

    • (reason?: any): void
    • Parameters

      • Optional reason: any

      Returns void

resolve

Find examples in Playground
resolve: function

The resolve method of the promise associated with this deferred object.

Type declaration

    • (value?: T | PromiseLike<T> | undefined): void
    • Parameters

      • Optional value: T | PromiseLike<T> | undefined

      Returns void

Generated using TypeDoc