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

Function waitUntil

packages/next/src/server/after/awaiter.test.ts:15–18  ·  view source on GitHub ↗
(promise: Promise<unknown>)

Source from the content-addressed store, hash-verified

13 const promises: TrackedPromise<unknown>[] = []
14
15 const waitUntil = (promise: Promise<unknown>) => {
16 promises.push(trackPromiseSettled(promise))
17 awaiter.waitUntil(promise)
18 }
19
20 const makeNestedPromise = async () => {
21 if (promises.length >= MAX_DEPTH) {

Callers 7

makeNestedPromiseFunction · 0.70
awaiter.test.tsFile · 0.70
GETFunction · 0.50
GETFunction · 0.50
getMethod · 0.50
revalidateMethod · 0.50
waitUntilMethod · 0.50

Calls 3

trackPromiseSettledFunction · 0.85
pushMethod · 0.65
waitUntilMethod · 0.45

Tested by

no test coverage detected