MCPcopy
hub / github.com/angular/angular / nestedTimer

Function nestedTimer

packages/zone.js/test/zone-spec/fake-async-test.spec.ts:163–165  ·  view source on GitHub ↗
(callback: () => any)

Source from the content-addressed store, hash-verified

161
162 it('should default to processNewMacroTasksSynchronously if providing other flags', () => {
163 function nestedTimer(callback: () => any): void {
164 setTimeout(() => setTimeout(() => callback()));
165 }
166 fakeAsyncTestZone.run(() => {
167 const callback = jasmine.createSpy('callback');
168 nestedTimer(callback);

Callers 1

Calls 2

setTimeoutFunction · 0.85
callbackFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…