feat: add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838)
This option will control whether to invoke the new macro tasks when ticking. Close #33799 PR Close #33838
This commit is contained in:

committed by
Miško Hevery

parent
2562a3b1b0
commit
17b862cf82
@ -117,7 +117,9 @@ Zone.__load_patch('fakeasync', (global: any, Zone: ZoneType, api: _ZonePrivate)
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
function tick(millis: number = 0): void { _getFakeAsyncZoneSpec().tick(millis); }
|
||||
function tick(millis: number = 0, ignoreNestedTimeout = false): void {
|
||||
_getFakeAsyncZoneSpec().tick(millis, null, ignoreNestedTimeout);
|
||||
}
|
||||
|
||||
/**
|
||||
* Simulates the asynchronous passage of time for the timers in the fakeAsync zone by
|
||||
|
Reference in New Issue
Block a user