MCPcopy Index your code
hub / github.com/ampproject/amphtml / enqueueTask_

Method enqueueTask_

src/chunk.js:366–369  ·  view source on GitHub ↗

* Queues a task to be executed later with given priority. * @param {!Task} task * @param {number} priority * @private

(task, priority)

Source from the content-addressed store, hash-verified

364 * @private
365 */
366 enqueueTask_(task, priority) {
367 this.tasks_.enqueue(task, priority);
368 this.schedule_();
369 }
370
371 /**
372 * Returns the next task that hasn't been run yet.

Callers 2

runMethod · 0.95
runForStartupMethod · 0.95

Calls 2

schedule_Method · 0.95
enqueueMethod · 0.45

Tested by

no test coverage detected