You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// worker_1.jsconst{ parentPort }=require('worker_threads');parentPort.on('message',(sharedArray)=>{console.log('Message for Worker_1 from Parent:',sharedArray);console.log('Worker_1, prep for editing!');Atomics.wait(sharedArray,0,102);Atomics.store(sharedArray,1,1);console.log('Worker_1 finished editing!',sharedArray);});
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
I think I should see this log in terminal: Worker_1, prep for editing!
What do you see instead?
I see only the first console.log, but the second one isn't there.
Additional information
It's the same for node v14the
The text was updated successfully, but these errors were encountered:
Version
v16.12.0
Platform
MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
Subsystem
worker_threads
What steps will reproduce the bug?
Hi,
I'm trying to work with
worker_threads
I've those two files, I expect that my log
Worker_1, prep for editing!
should be visible in the terminal, but it's not.I'm wondering why the first log is visible but the second not.
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
I think I should see this log in terminal:
Worker_1, prep for editing!
What do you see instead?
I see only the first console.log, but the second one isn't there.
Additional information
It's the same for node v14the
The text was updated successfully, but these errors were encountered: