Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/axios/axios
/ sleep
Function
sleep
tests/browser/adapter.browser.test.js:63–63 ·
view source on GitHub ↗
(ms = 0)
Source
from the content-addressed store, hash-verified
61
let
OriginalXMLHttpRequest;
62
63
const
sleep = (ms = 0) =>
new
Promise((resolve) => setTimeout(resolve, ms));
64
65
const
waitForRequest =
async
(timeoutMs = 1000) => {
66
const
start = Date.now();
Callers
1
waitForRequest
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected