MCPcopy
hub / github.com/vercel/next.js / delay

Function delay

packages/next/src/server/after/after-context.test.ts:195–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 await streamStarted.promise // block the stream to start it manually later
194
195 const delay = () =>
196 new Promise<void>((resolve) => setTimeout(resolve, 50))
197
198 after(afterCallback1)
199 controller.enqueue('one')

Callers 1

startFunction · 0.70

Calls 1

setTimeoutFunction · 0.50

Tested by

no test coverage detected