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

Function getAsyncValueFunction

test/e2e/test-expect.js:1580–1582  ·  view source on GitHub ↗

* Returns a method that resolves the numbers 0 through 6. * @return {function():!Promise } * @template T

(valueFunction)

Source from the content-addressed store, hash-verified

1578 * @template T
1579 */
1580function getAsyncValueFunction(valueFunction) {
1581 return async () => valueFunction();
1582}
1583
1584/**
1585 * Returns a method that resolves each of its given arguments

Callers 1

test-expect.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected