Methods
catch
- catch<R>(onRejected: (err: any) => R | Promise<R>): Promise<T | R>
-
Type parameters
Parameters
-
onRejected: (err: any) => R | Promise<R>
-
- (err: any): R | Promise<R>
-
Parameters
Returns R | Promise<R>
Returns Promise<T | R>
Protected Abstract createPromise
- createPromise(): Promise<T>
then
- then<R, V>(onFulfilled: (value: T) => R | Promise<R>, onRejected?: undefined | ((err: any) => V | Promise<V>)): Promise<R | V>
-
Type parameters
Parameters
-
onFulfilled: (value: T) => R | Promise<R>
-
- (value: T): R | Promise<R>
-
Parameters
Returns R | Promise<R>
-
Optional onRejected: undefined | ((err: any) => V | Promise<V>)
Returns Promise<R | V>
PromiseWrap provides promise-like functions that auto-invoke an exec method when called.