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

Method add

packages/core/src/defer/timer_scheduler.ts:66–70  ·  view source on GitHub ↗
(delay: number, callback: VoidFunction, ngZone: NgZone)

Source from the content-addressed store, hash-verified

64 deferred: Array<number | VoidFunction> = [];
65
66 add(delay: number, callback: VoidFunction, ngZone: NgZone) {
67 const target = this.executingCallbacks ? this.deferred : this.current;
68 this.addToQueue(target, Date.now() + delay, callback);
69 this.scheduleTimer(ngZone);
70 }
71
72 remove(callback: VoidFunction) {
73 const {current, deferred} = this;

Callers

nothing calls this directly

Calls 2

addToQueueMethod · 0.95
scheduleTimerMethod · 0.95

Tested by

no test coverage detected