Methods
catch
- catch(cb): void
Returns void
promise
- promise(): {
catch: ((cb) => void);
then: ((cb) => void);
} Returns {
catch: ((cb) => void);
then: ((cb) => void);
}
catch: ((cb) => void)
then: ((cb) => void)
reject
- reject(error?): void
Returns void
resolve
- resolve(value?): void
Returns void
then
- then(cb): void
Returns void
A ES6 Promise, that exposes the resolve()/reject() methods.
TODO: See Promise.withResolvers() , a proposed standard, but not yet implemented in any browser.