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

Method constructor

src/service/task-queue.js:27–39  ·  view source on GitHub ↗

* Creates an instance of TaskQueue.

()

Source from the content-addressed store, hash-verified

25 * Creates an instance of TaskQueue.
26 */
27 constructor() {
28 /** @private @const {!Array<!TaskDef>} */
29 this.tasks_ = [];
30
31 /** @private @const {!{[key: string]: !TaskDef}} */
32 this.taskIdMap_ = {};
33
34 /** @private {!time} */
35 this.lastEnqueueTime_ = 0;
36
37 /** @private {!time} */
38 this.lastDequeueTime_ = 0;
39 }
40
41 /**
42 * Size of the queue.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected