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

Class FakeTimerScheduler

packages/core/test/acceptance/defer_spec.ts:132–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132class FakeTimerScheduler {
133 cbs: VoidFunction[] = [];
134 add(delay: number, callback: VoidFunction) {
135 this.cbs.push(callback);
136 }
137 remove(callback: VoidFunction) {
138 /* noop */
139 }
140
141 invoke() {
142 for (const cb of this.cbs) {
143 cb();
144 }
145 }
146}
147
148@Injectable()
149export class DebugConsole extends Console {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…