MCPcopy Create free account
hub / github.com/angular/angular / flushPeriodic

Method flushPeriodic

packages/zone.js/lib/zone-spec/fake-async-test.ts:313–323  ·  view source on GitHub ↗
(doTick?: (elapsed: number) => void)

Source from the content-addressed store, hash-verified

311 }
312
313 private flushPeriodic(doTick?: (elapsed: number) => void): number {
314 if (this._schedulerQueue.length === 0) {
315 return 0;
316 }
317 // Find the last task currently queued in the scheduler queue and tick
318 // till that time.
319 const startTime = this._currentTickTime;
320 const lastTask = this._schedulerQueue[this._schedulerQueue.length - 1];
321 this.tick(lastTask.endTime - startTime, doTick);
322 return this._currentTickTime - startTime;
323 }
324
325 private flushNonPeriodic(limit: number, doTick?: (elapsed: number) => void): number {
326 const startTime = this._currentTickTime;

Callers 1

flushMethod · 0.95

Calls 1

tickMethod · 0.95

Tested by

no test coverage detected