MCPcopy
hub / github.com/cursor/community-plugins / sleep

Function sleep

apps/cursor/src/scripts/extract-from-github.ts:110–110  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

108}
109
110const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
111
112/** Sleep until the GitHub Search rate-limit resets if we're nearly empty. */
113async function respectRateLimit(res: Response, label: string) {

Callers 3

respectRateLimitFunction · 0.70
githubSearchFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected