A ES6 Promise, that exposes the resolve()/reject() methods.

TODO: See Promise.withResolvers() , a proposed standard, but not yet implemented in any browser.

Constructors

Methods

  • Returns {
        catch: ((cb) => void);
        then: ((cb) => void);
    }

    • catch: ((cb) => void)
        • (cb): void
        • Parameters

          • cb: any

          Returns void

    • then: ((cb) => void)
        • (cb): void
        • Parameters

          • cb: any

          Returns void

  • Parameters

    • Optional error: any

    Returns void

  • Parameters

    • Optional value: any

    Returns void