tick
function
Simulates the asynchronous passage of time for the timers in the fakeAsync
zone.
API
Description
Usage Notes
function tick( millis?: number, tickOptions?: { processNewMacroTasksSynchronously: boolean; }): void;
tick
void
Simulates the asynchronous passage of time for the timers in the fakeAsync
zone.
The microtasks queue is drained at the very start of this function and after any timer callback has been executed.
@parammillis
number
The number of milliseconds to advance the virtual timer.
@paramtickOptions
{ processNewMacroTasksSynchronously: boolean; }
The options to pass to the tick()
function.
@returns
void
Jump to details