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

Function skipMicro

test/unit/test-runtime.js:362–364  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360 .callsFake(() => bodyPromise);
361
362 function skipMicro() {
363 return Promise.resolve().then(() => Promise.resolve());
364 }
365 function waitNext(promise) {
366 return Promise.race([promise, skipMicro()]);
367 }

Callers 1

waitNextFunction · 0.85

Calls 2

resolveMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected