Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • D = unknown

Hierarchy

Index

Properties

[toStringTag]: "Promise"
override
aborted: boolean = false

If true, then the promise was aborted

data: Promise<Nullable<D>>
emitter: EventEmitter2

Handler of the native promise rejection that was raised by a reason of abort

Handler of the native promise rejection

Handler of the native promise resolving

pendingChildren: number = 0

Number of pending child promises

promise: Promise<RequestResponseObject<D>>

Internal native promise instance

state: State = State.pending

Actual promise state

stream: AsyncIterableIterator<unknown>
value: unknown

Resolved promise value

Accessors

  • get isPending(): boolean

Methods

  • abort(reason?: unknown): boolean
  • Attaches a common callback for the promise fulfilled and rejected states. The method returns a new promise with the state and value from the current. A value from the passed callback will be ignored unless it equals a rejected promise or exception.

    Parameters

    Returns default<RequestResponseObject<D>>