Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PromiseDelegate<T>

A Promise that can be resolved or rejected by another object.

Type parameters

  • T

Hierarchy

  • PromiseDelegate

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private _promise

_promise: Promise<T>

Private _reject

_reject: function

Type declaration

    • (reason?: any): void
    • Parameters

      • Optional reason: any

      Returns void

Private _resolve

_resolve: function

Type declaration

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

      • Optional value: T | Thenable<T>

      Returns void

Accessors

promise

  • get promise(): Promise<T>
  • Get the underlying Promise.

    Returns Promise<T>

Methods

reject

  • reject(reason?: any): void
  • Reject the underlying Promise with an optional reason.

    Parameters

    • Optional reason: any

    Returns void

resolve

  • resolve(value?: T | Thenable<T>): void
  • Resolve the underlying Promise with an optional value or another Promise.

    Parameters

    • Optional value: T | Thenable<T>

    Returns void

Generated using TypeDoc