MCPcopy Index your code
hub / github.com/QwikDev/qwik / getQueue

Function getQueue

packages/qwik/src/core/preloader/queue.ts:47–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 * The client will use this array to reconstruct the queue.
46 */
47export const getQueue = () => {
48 sortQueue();
49 let probability = 0.4;
50 const result: (string | number)[] = [];
51 for (const b of queue) {
52 const nextProbability = Math.round((1 - b.$inverseProbability$) * 10);
53 if (nextProbability !== probability) {
54 probability = nextProbability;
55 result.push(probability);
56 }
57 result.push(b.$name$);
58 }
59 return result;
60};
61
62/**
63 * This is called when a bundle is queued, or finished loading.

Callers 1

expandBundlesFunction · 0.90

Calls 1

sortQueueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…