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

Class FakeTimerScheduler

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected