MCPcopy Index your code
hub / github.com/react/react / wait

Function wait

scripts/bench/benchmark.js:13–15  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

11const timesToRun = 10;
12
13function wait(val) {
14 return new Promise(resolve => setTimeout(resolve, val));
15}
16
17async function runScenario(benchmark, chrome) {
18 const port = chrome.port;

Callers 2

initChromeFunction · 0.70
runBenchmarkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected