MCPcopy Create free account
hub / github.com/angular/angular / FakeTimerScheduler

Class FakeTimerScheduler

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

Source from the content-addressed store, hash-verified

146}
147
148class FakeTimerScheduler {
149 cbs: VoidFunction[] = [];
150 add(delay: number, callback: VoidFunction) {
151 this.cbs.push(callback);
152 }
153 remove(callback: VoidFunction) {
154 /* noop */
155 }
156
157 invoke() {
158 for (const cb of this.cbs) {
159 cb();
160 }
161 }
162}
163
164@Injectable()
165export class DebugConsole extends Console {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected