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

  • Parameters

    • cb: any

    Returns void

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

  • Parameters

    • Optionalerror: any

    Returns void

  • Parameters

    • Optionalvalue: any

    Returns void

  • Parameters

    • cb: any

    Returns void