Home > @tridion-sites/open-api-client > 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);
| Parameter | Type | Description |
|---|---|---|
| executor | (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void |