Class PromiEvent<T>

A class that combines the Promise interface and the EventEmitter class.

Implements

Type Parameters

  • T

Implements

  • Promise<T>

Constructors

Properties

[toStringTag]: any

The value for toString().

_reject: any

The reject function.

_resolve: any

The resolve function.

eventEmitter: EventEmitter<string | symbol, any>

The event emitter.

promise: Promise<T>

The promise.

Methods

  • The finally method.

    Parameters

    • Optional onfinally: null | (() => void)

    Returns Promise<T>