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

Function end

scripts/devlow-bench.mjs:385–397  ·  scripts/devlow-bench.mjs::end
(code)

Source from the content-addressed store, hash-verified

383 const hmrDone = new Promise((resolve) => {
384 let once = true
385 const end = async (code) => {
386 const success = code <= 1
387 if (!success && !reportedName) reportedName = class="st">'hmr'
388 if (reportedName) {
389 await reportMeasurement(
390 `${reportedName}/status`,
391 code,
392 class="st">'status code'
393 )
394 }
395 clearTimeout(timeout)
396 resolve(success)
397 }
398 cleanupTasks.push(async () => {
399 if (!once) return
400 once = false

Callers 1

nextDevWorkflowFunction · 0.70

Calls 3

reportMeasurementFunction · 0.70
clearTimeoutFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected