Options
All
  • Public
  • Public/Protected
  • All
Menu

Resolves or rejects a Promise from outside of it.

This class is similar to Deferred but it explicitly separates the promise and its control side into two different objects.

see

PromiseLikeResolutionSource

Type parameters

  • T

    type of the promise resolution result.

Hierarchy

  • PromiseResolutionSource

Index

Accessors

promise

  • get promise(): Promise<T>

Methods

tryCancel

  • tryCancel(): boolean

tryReject

  • tryReject(reason: any): boolean

tryResolve

  • tryResolve(result: T | PromiseLike<T>): boolean

Generated using TypeDoc