Is it ok to use a native module ONLY in one Web Worker?


#1

I’ve read the documentation and it says using native modules in Web Worker is unsafe.

But if the native module is ONLY required in one single Web Worker script, neither in the main script, nor in the rendering script, is it safe enough ?

I’m building a electron app with intel realsense camera node.js SDK, I want to run the frame fetching loop in a Web Worker, using zero-copy ArrayBuffer to reduce memory usage.

Thanks


#2

Everything works fine, so far