MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

src/core/data-structures/priority-queue.js:9–15  ·  view source on GitHub ↗

* Creates an instance of PriorityQueue.

()

Source from the content-addressed store, hash-verified

7 * Creates an instance of PriorityQueue.
8 */
9 constructor() {
10 /**
11 * @type {Array<{item: T, priority: number}>}
12 * @private
13 */
14 this.queue_ = [];
15 }
16
17 /**
18 * Returns the max priority item without dequeueing it.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected