MCPcopy Create free account
hub / github.com/github/docs / sleep

Function sleep

script/deployment/purge-edge-cache.js:16–16  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

14const DELAY_BEFORE_SECOND_PURGE = 30 * 1000
15
16const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
17
18async function purgeFastlyBySurrogateKey({ apiToken, serviceId, surrogateKey }) {
19 const safeServiceId = encodeURIComponent(serviceId)

Callers 1

purgeEdgeCacheFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected