MCPcopy
hub / github.com/ampproject/amphtml / requestMacroTask_

Method requestMacroTask_

src/chunk.js:512–515  ·  view source on GitHub ↗

* Requests executing of a macro task. Yields to the event queue * before executing the task. * Places task on browser message queue which then respectively * triggers dequeuing and execution of a chunk.

()

Source from the content-addressed store, hash-verified

510 * triggers dequeuing and execution of a chunk.
511 */
512 requestMacroTask_() {
513 // The message doesn't actually matter.
514 this.win_./*OK*/ postMessage('amp-macro-task', '*');
515 }
516}
517
518/**

Callers 2

executeAsap_Method · 0.95
schedule_Method · 0.95

Calls 1

postMessageMethod · 0.45

Tested by

no test coverage detected