Deferred<T>

Wrapper class for promise with external resolve and reject.

Type parameters

  • T

Hierarchy

  • Deferred

Index

Constructors

Properties

Constructors

constructor

  • Constructor for this deferred object.

    Returns Deferred

Properties

promise

promise: Promise<T>

The promise associated with this deferred object.

reject

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

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