callPromise
Calls the supplied function using a Promise.
Signature
callPromise<T>(fn: (...arguments: any[]) => T | void, ...arguments: any[]): void
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
fn | (...arguments: any[]) => T | void | No | Specifies the function to execute. |
arguments | any[] | Yes | Optional arguments which should be passed to the callee. |