MCPcopy Index your code
hub / github.com/angular/angular / ɵɵdeferOnTimer

Function ɵɵdeferOnTimer

packages/core/src/defer/instructions.ts:504–515  ·  view source on GitHub ↗
(delay: number)

Source from the content-addressed store, hash-verified

502 * @codeGenApi
503 */
504export function ɵɵdeferOnTimer(delay: number) {
505 const lView = getLView();
506 const tNode = getCurrentTNode()!;
507
508 if (ngDevMode) {
509 trackTriggerForDebugging(lView[TVIEW], tNode, `on timer(${delay}ms)`);
510 }
511
512 if (!shouldAttachTrigger(TriggerType.Regular, lView, tNode)) return;
513
514 scheduleDelayedTrigger(onTimer(delay));
515}
516
517/**
518 * Creates runtime data structures for the `prefetch on timer` deferred trigger.

Callers

nothing calls this directly

Calls 6

getLViewFunction · 0.90
getCurrentTNodeFunction · 0.90
trackTriggerForDebuggingFunction · 0.90
shouldAttachTriggerFunction · 0.90
scheduleDelayedTriggerFunction · 0.90
onTimerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…