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

Method end

packages/next/src/lib/worker.ts:295–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 }
294
295 end(): ReturnType<JestWorker['end']> {
296 const worker = this._worker
297 if (!worker) {
298 throw new Error('Farm is ended, no more calls can be done to it')
299 }
300 cleanupWorkers(worker)
301 this._worker = undefined
302 return worker.end()
303 }
304
305 /**
306 * Quietly end the worker if it exists

Callers

nothing calls this directly

Calls 2

cleanupWorkersFunction · 0.85
endMethod · 0.65

Tested by

no test coverage detected