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

Function nestedTimer

packages/core/test/fake_async_spec.ts:148–150  ·  view source on GitHub ↗
(callback: () => any)

Source from the content-addressed store, hash-verified

146
147 it('should run new macro tasks created by timer callback', fakeAsync(() => {
148 function nestedTimer(callback: () => any): void {
149 setTimeout(() => setTimeout(() => callback()));
150 }
151 const callback = jasmine.createSpy('callback');
152 nestedTimer(callback);
153 expect(callback).not.toHaveBeenCalled();

Callers 1

fake_async_spec.tsFile · 0.70

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…