Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
waitNext
Function · 0.85
Calls
2
resolve
Method · 0.80
then
Method · 0.45
Tested by
no test coverage detected