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

Function getDelayPromiseProducer

src/friendly-iframe-embed.js:84–89  ·  view source on GitHub ↗

* @return {function(*): !Promise<*>}

()

Source from the content-addressed store, hash-verified

82 * @return {function(*): !Promise<*>}
83 */
84function getDelayPromiseProducer() {
85 return (val) =>
86 new Promise((resolve) => {
87 setTimeout(() => resolve(val), 1);
88 });
89}
90
91/**
92 * Returns `true` if the Friendly Iframes are supported.

Callers 1

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected