Slytherin
Slytherin
Also I am exploring the following for node: https://www.npmjs.com/package/webworker-threads
@HarshKhandeparkar latest version of node is 10.15.0 So we shoud proceed that way. We can use the native support in node v11.7.0 once it becomes the LTS but till then,...
@jywarren request a little help here. Can you please help me out with how can I pass functions to workers since they are not allowed as per structured clone algorithm...
@HarshKhandeparkar may have a look https://www.npmjs.com/package/webworker-threads
Structured clone algo is the one used to copy data from ine worker to another and it has certain restrictions. Can have a look here: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
Also I have to pass certain number of functions including the one that are imported through require() as require cannot be used inside worker threads. So there is a lot...
Actually the` importScripts()` runs the script most probably inside the file provided to it so the functions provided inside it will not work and moreover we cannot pass any args...
Looking at the code ..
@avsingh999 can you please provide a mockup for this?
Is this issue still open @tech4GT ? I would link to work upon it.