Skip to main content

callPromise

Calls the supplied function using a Promise.

Signature​

callPromise<T>(fn: (...arguments: any[]) => T | void, ...arguments: any[]): void

Parameters​

NameTypeOptionalDescription
fn(...arguments: any[]) => T | voidNoSpecifies the function to execute.
argumentsany[]YesOptional arguments which should be passed to the callee.