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

Function start

test/integration/edge-runtime-streaming-error/pages/api/test.js:8–12  ·  view source on GitHub ↗
(ctr)

Source from the content-addressed store, hash-verified

6 return new Response(
7 new ReadableStream({
8 start(ctr) {
9 ctr.enqueue(new TextEncoder().encode('hello'))
10 ctr.enqueue(true)
11 ctr.close()
12 },
13 })
14 )
15}

Callers 1

runTestsFunction · 0.50

Calls 3

encodeMethod · 0.65
closeMethod · 0.65
enqueueMethod · 0.45

Tested by 1

runTestsFunction · 0.40