Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Deferred<T>

Wrapper class for promise with external resolve and reject.

Type parameters

  • T

Hierarchy

  • Deferred

Index

Constructors

Properties

Accessors

Constructors

constructor

  • Constructor for this deferred object.

    Returns Deferred

Properties

Readonly promiseSearch playground for promise

promise: Promise<T>

The promise associated with this deferred object.

Accessors

reject

  • get reject(): (reason?: any) => void
  • The reject method of the promise associated with this deferred object.

    Returns (reason?: any) => void

      • (reason?: any): void
      • Parameters

        • Optional reason: any

        Returns void

resolve

  • get resolve(): (value: T | PromiseLike<T>) => void
  • The resolve method of the promise associated with this deferred object.

    Returns (value: T | PromiseLike<T>) => void

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

        • value: T | PromiseLike<T>

        Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method