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';
4
4
import { Worker } from 'node:worker_threads' ;
5
5
6
6
import Emittery from 'emittery' ;
7
- import { pEvent } from 'p-event' ;
8
7
9
8
import { controlFlow } from './ipc-flow-control.cjs' ;
10
9
import serializeError from './serialize-error.js' ;
@@ -35,13 +34,8 @@ const createWorker = (options, execArgv) => {
35
34
} ) ;
36
35
postMessage = worker . postMessage . bind ( worker ) ;
37
36
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
-
42
37
close = async ( ) => {
43
38
try {
44
- await starting ;
45
39
await worker . terminate ( ) ;
46
40
} finally {
47
41
// No-op
You can’t perform that action at this time.
0 commit comments