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

Function scheduleAnimationQueue

packages/core/src/animation/queue.ts:88–104  ·  view source on GitHub ↗
(injector: Injector)

Source from the content-addressed store, hash-verified

86}
87
88export function scheduleAnimationQueue(injector: Injector) {
89 const animationQueue = injector.get(ANIMATION_QUEUE);
90 // We only want to schedule the animation queue if it hasn't already been scheduled.
91 if (!animationQueue.isScheduled) {
92 afterNextRender(
93 () => {
94 animationQueue.isScheduled = false;
95 for (let animateFn of animationQueue.queue) {
96 animateFn();
97 }
98 animationQueue.queue.clear();
99 },
100 {injector: animationQueue.injector},
101 );
102 animationQueue.isScheduled = true;
103 }
104}
105
106export function initializeAnimationQueueScheduler(injector: Injector) {
107 const animationQueue = injector.get(ANIMATION_QUEUE);

Callers

nothing calls this directly

Calls 3

afterNextRenderFunction · 0.90
getMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…