File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import {fileURLToPath} from 'node:url';
44import { Worker } from 'node:worker_threads' ;
55
66import Emittery from 'emittery' ;
7- import { pEvent } from 'p-event' ;
87
98import { controlFlow } from './ipc-flow-control.cjs' ;
109import serializeError from './serialize-error.js' ;
@@ -35,13 +34,8 @@ const createWorker = (options, execArgv) => {
3534 } ) ;
3635 postMessage = worker . postMessage . bind ( worker ) ;
3736
38- // Ensure we've seen this event before we terminate the worker thread, as a
39- // workaround for https://github.com/nodejs/node/issues/38418.
40- const starting = pEvent ( worker , 'message' , ( { ava} ) => ava ?. type === 'starting' ) ;
41-
4237 close = async ( ) => {
4338 try {
44- await starting ;
4539 await worker . terminate ( ) ;
4640 } finally {
4741 // No-op
You can’t perform that action at this time.
0 commit comments