MCPcopy
hub / github.com/angular/angular / setInterval

Function setInterval

packages/examples/common/pipes/ts/async_pipe.ts:67–78  ·  view source on GitHub ↗
(fn: Function, delay: number)

Source from the content-addressed store, hash-verified

65// protractor will not see us. Also we want to have this outside the docregion so as not to confuse
66// the reader.
67function setInterval(fn: Function, delay: number) {
68 const zone = (window as any)['Zone'].current;
69 let rootZone = zone;
70 while (rootZone.parent) {
71 rootZone = rootZone.parent;
72 }
73 rootZone.run(() => {
74 window.setInterval(function (this: unknown) {
75 zone.run(fn, this, arguments as any);
76 }, delay);
77 });
78}

Callers 15

fake_async_spec.tsFile · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
jest.spec.jsFile · 0.85

Calls 1

runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…