• Obtain a promise with functions to resolve and reject.

    Type Parameters

    • T

    Returns {
        promise: Promise<T>;
        rejecter: ((reason?: any) => void);
        resolver: ((value: T) => void);
    }

    • promise: Promise<T>
    • rejecter: ((reason?: any) => void)
        • (reason?): void
        • Parameters

          • Optionalreason: any

          Returns void

    • resolver: ((value: T) => void)
        • (value): void
        • Parameters

          • value: T

          Returns void