MCPcopy
hub / github.com/axios/axios / sleep

Function sleep

tests/browser/interceptors.browser.test.js:106–106  ·  view source on GitHub ↗
(ms = 0)

Source from the content-addressed store, hash-verified

104let OriginalXMLHttpRequest;
105
106const sleep = (ms = 0) => new Promise((resolve) => setTimeout(resolve, ms));
107
108const waitForRequest = async (timeoutMs = 1000) => {
109 const start = Date.now();

Callers 1

waitForRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected