Options
All
  • Public
  • Public/Protected
  • All
Menu

Wrapper class for promise with external resolve and reject.

Type Parameters

  • T

Hierarchy

  • Deferred

Index

Constructors

Properties

Accessors

Constructors

  • Constructor for this deferred object.

    Type Parameters

    • T

    Returns Deferred<T>

Properties

promise: Promise<T>

The promise associated with this deferred object.

Accessors

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

    Returns ((reason?: any) => void)

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

        Parameters

        • Optional reason: any

        Returns void

  • 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
      • The resolve method of the promise associated with this deferred object.

        Parameters

        • value: T | PromiseLike<T>

        Returns void

Legend

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

Settings

Theme