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

Function onTimer

packages/core/src/defer/timer_scheduler.ts:18–21  ·  view source on GitHub ↗
(delay: number)

Source from the content-addressed store, hash-verified

16 * Invoking the returned function schedules a trigger.
17 */
18export function onTimer(delay: number) {
19 return (callback: VoidFunction, injector: Injector) =>
20 scheduleTimerTrigger(delay, callback, injector);
21}
22
23/**
24 * Schedules a callback to be invoked after a given timeout.

Callers 4

ɵɵdeferOnTimerFunction · 0.90
ɵɵdeferPrefetchOnTimerFunction · 0.90
ɵɵdeferHydrateOnTimerFunction · 0.90
setTimerTriggersFunction · 0.90

Calls 1

scheduleTimerTriggerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…