Class Deferred<T>

Deferred is a utility class to create a promise that can be resolved or rejected without having to pass an executor function.

Type Parameters

  • T = any

Constructors

Methods

Constructors

Methods

  • Parameters

    • Optional error: any

    Returns void

  • Parameters

    • Optional result: T | Promise<T>

    Returns void

  • Returns Promise<void>