MCPcopy Index your code
hub / github.com/UI5/webcomponents / enqueue

Method enqueue

packages/base/src/animations/AnimationQueue.ts:9–15  ·  view source on GitHub ↗
(element: HTMLElement, task: TaskType)

Source from the content-addressed store, hash-verified

7 }
8
9 static enqueue(element: HTMLElement, task: TaskType) {
10 if (!tasks.has(element)) {
11 tasks.set(element, []);
12 }
13
14 tasks.get(element)!.push(task);
15 }
16
17 static run(element: HTMLElement, task: TaskType): Promise<void> {
18 if (!tasks.has(element)) {

Callers 1

pushMethod · 0.80

Calls 2

pushMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected