MCPcopy
hub / github.com/sindresorhus/got / delay

Function delay

test/timer-utils.ts:6–8  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

4
5// Helper for delays
6const delay = async (ms: number) => new Promise(resolve => {
7 setTimeout(resolve, ms);
8});
9
10// Helper to create a mock request
11function createMockRequest() {

Callers 15

createFunction · 0.85
cache.tsFile · 0.85
post.tsFile · 0.85
abort.tsFile · 0.85
replacementBodyFunction · 0.85
timer-utils.tsFile · 0.85
hooks.tsFile · 0.85
create.tsFile · 0.85
expectStreamToEndFunction · 0.85
setCookieFunction · 0.85
stream.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…