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

Method getTaskById

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

* Returns the task with the specified ID or null. * @param {string} taskId * @return {?TaskDef}

(taskId)

Source from the content-addressed store, hash-verified

68 * @return {?TaskDef}
69 */
70 getTaskById(taskId) {
71 return this.taskIdMap_[taskId] || null;
72 }
73
74 /**
75 * Enqueues the task. If the task is already in the queue, the error is

Callers 4

test-task-queue.jsFile · 0.80
work_Method · 0.80
reschedule_Method · 0.80
schedule_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected