We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f496ba6 commit b4f96c8Copy full SHA for b4f96c8
turbopack/crates/turbopack-node/js/src/worker_threads/evaluate.ts
@@ -121,6 +121,9 @@ export const run = async (
121
}
122
123
while (true) {
124
+ // need await a micro task, or that if some some request rejected,
125
+ // the error will be propergated to schedule threat, then causing panic
126
+ await Promise.resolve()
127
const msg_str = await binding.recvMessageInWorker(workerId)
128
129
const msg = JSON.parse(msg_str) as
0 commit comments