Open thom4parisot opened 4 years ago
@oncletom That's a great item for the roadmap - I do have on there to switch to N-API, but I will look into declaring it as a context-aware native module as an interim solution. I would also love to have this for our production cases.
Cool! Let me know if you need some testing — I kept my code while switching to worker-farm
in the meantime.
I found Worker Thread integration easier (to write and debug) and less verbose to achieve identical result.
If you have the time and want to try it out feel free to send a PR - I'm pretty busy this week and probably won't get around to this until next week.
When I use Node.js Worker Thread to offload the work in another process, I encounter this error :
The document specifies this:
There is a code example that makes a native module "context aware".