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

Method flush

packages/zone.js/lib/zone-spec/fake-async-test.ts:305–311  ·  view source on GitHub ↗
(limit = 20, flushPeriodic = false, doTick?: (elapsed: number) => void)

Source from the content-addressed store, hash-verified

303 }
304
305 flush(limit = 20, flushPeriodic = false, doTick?: (elapsed: number) => void): number {
306 if (flushPeriodic) {
307 return this.flushPeriodic(doTick);
308 } else {
309 return this.flushNonPeriodic(limit, doTick);
310 }
311 }
312
313 private flushPeriodic(doTick?: (elapsed: number) => void): number {
314 if (this._schedulerQueue.length === 0) {

Callers 4

patchJestFunction · 0.45
flushMethod · 0.45
fakeAsyncFnFunction · 0.45
flushFunction · 0.45

Calls 2

flushPeriodicMethod · 0.95
flushNonPeriodicMethod · 0.95

Tested by

no test coverage detected