MCPcopy Index your code
hub / github.com/angular/angular / advance

Method advance

packages/service-worker/worker/testing/scope.ts:313–322  ·  view source on GitHub ↗
(by: number)

Source from the content-addressed store, hash-verified

311 }
312
313 advance(by: number): void {
314 this.mockTime += by;
315 this.timers
316 .filter((timer) => !timer.fired)
317 .filter((timer) => timer.at <= this.mockTime)
318 .forEach((timer) => {
319 timer.fired = true;
320 timer.fn();
321 });
322 }
323
324 override isClient(obj: any): obj is Client {
325 return obj instanceof MockClient;

Callers 1

timeoutMethod · 0.95

Calls 3

forEachMethod · 0.45
filterMethod · 0.45
fnMethod · 0.45

Tested by

no test coverage detected