Open jjv360 opened 1 year ago
I think the while loop could in theory be blocking the execution, what happens if you run it without the blocking loop?
You can try add a setTimeout 0 to the blocking code to move it to next event loop
Hi, this is no longer an issue for me, it happens on Windows WSL2, but doesn't happen on Windows directly or on my Mac, not sure why...
Hi, I'm trying to train a neural network with brain.js in a thread (using Node v20, I tried v18 as well), and I can't seem to get updates from the Observable until the entire thread has finished it's work... I've reproduced the issue in the simplest form here:
I would expect to see Progress 0, Progress 1 etc appearing 1 second apart in the console log. Instead, nothing happens for 5 seconds and then I get all the logs at once at the end...
I'm not sure if I'm doing something wrong, or if this is a bug?