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

Function cleanupWorkers

packages/next/src/lib/worker.ts:17–23  ·  view source on GitHub ↗
(worker: JestWorker)

Source from the content-addressed store, hash-verified

15const RESTARTED = Symbol('restarted')
16
17const cleanupWorkers = (worker: JestWorker) => {
18 for (const curWorker of ((worker as any)._workerPool?._workers || []) as {
19 _child?: ChildProcess
20 }[]) {
21 curWorker._child?.kill('SIGINT')
22 }
23}
24
25export function getNextBuildDebuggerPortOffset(_: {
26 kind: 'export-page'

Callers 2

endMethod · 0.85
closeMethod · 0.85

Calls 1

killMethod · 0.65

Tested by

no test coverage detected