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

Function macroTask

testing/helpers/index.js:40–42  ·  view source on GitHub ↗
(setTimeoutFunc = setTimeout)

Source from the content-addressed store, hash-verified

38 * @return {Promise<void>}
39 */
40export function macroTask(setTimeoutFunc = setTimeout) {
41 return sleep(0, setTimeoutFunc);
42}
43
44/**
45 * Returns a Promise that resolves after the next browser frame has been rendered.

Calls 1

sleepFunction · 0.70

Tested by

no test coverage detected