sfapi-ts

Home > @cjh1/sfapi > CancelablePromise > (constructor)

CancelablePromise.(constructor)

Constructs a new instance of the CancelablePromise class

Signature:

constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);

Parameters

Parameter Type Description
executor (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void