runFuncAsync

runFuncAsync const
runFuncAsync(timeoutnumber, useFakeTimers?boolean): (callbackany, argsany[]) => Promise<unknown>

Create a function to run the passed function asynchronously.

Parameters
  • timeoutnumber = 0
  • useFakeTimersbooleanoptional 
Returns 
(callbackany, argsany[]) => Promise<unknown>
    function(callbackany, argsany[]): Promise<unknown>
    Parameters
    • callbackany
    • argsany[]
    Returns 
    Promise<unknown>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.