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
I'm trying to 'require' a script within a WebWorker, and getting stuck. I think I understand the basics of why this doesn't work - i.e. that the new thread is not a native NodeJS thread and is instead a thread executing with a plain V8 context, but I'm just trying to confirm my suspicions:
I never get to '2'. I assume this is because the thread is breaking. Is there any native option here?
I think that the only way I'll acheive what I want is to become at least proficient at C++ and muck in, or to ask the Worker thread to start a subset of my main threads abilities and to share space across a data store of some sort, could anyone confirm?
Even then, I'm having problems running a file from my Worker, using 'require' within a second .js file causes the same breaking problem. Is this a continuation of #9?
Thanks,
Alex
The text was updated successfully, but these errors were encountered:
Hi there,
I'm trying to 'require' a script within a WebWorker, and getting stuck. I think I understand the basics of why this doesn't work - i.e. that the new thread is not a native NodeJS thread and is instead a thread executing with a plain V8 context, but I'm just trying to confirm my suspicions:
I never get to '2'. I assume this is because the thread is breaking. Is there any native option here?
I think that the only way I'll acheive what I want is to become at least proficient at C++ and muck in, or to ask the Worker thread to start a subset of my main threads abilities and to share space across a data store of some sort, could anyone confirm?
Even then, I'm having problems running a file from my Worker, using 'require' within a second .js file causes the same breaking problem. Is this a continuation of #9?
Thanks,
Alex
The text was updated successfully, but these errors were encountered: