runFuncAsync
FunctionrunFuncAsync(timeout: number, useFakeTimers?: boolean): (callback: any, args: any[]) => Promise<unknown>
Create a function to run the passed function asynchronously.
Parameters
Parameter | Type | Default |
---|---|---|
timeout | number | 0 |
use | boolean |
|
Returns
(callback: any, args: any[]) => Promise<unknown>
function(callback: any, args: any[]): Promise<unknown>
Parameters
Parameter | Type |
---|---|
callback | any |
args | any[] |
Returns
Promise<unknown>