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

Function resolvingIdleCallbackWithTimeRemaining

test/unit/test-chunk.js:17–21  ·  view source on GitHub ↗
(timeRemaining)

Source from the content-addressed store, hash-verified

15 });
16
17 const resolvingIdleCallbackWithTimeRemaining = (timeRemaining) => (fn) => {
18 Promise.resolve({
19 timeRemaining: () => timeRemaining,
20 }).then(fn);
21 };
22
23 function basicTests(env) {
24 let fakeWin;

Callers 1

test-chunk.jsFile · 0.85

Calls 2

resolveMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected