audreyt / node-webworker-threads

Lightweight Web Worker API implementation with native threads
https://npmjs.org/package/webworker-threads
Other
2.3k stars 149 forks source link

Use Node Module Inside a Pool #150

Closed mfigueredo closed 7 years ago

mfigueredo commented 7 years ago

I guess it is more a question than a issue. Is there any limitation about use a node module, like[1], inside a pool?

Thanks!

[1]https://github.com/brianc/node-pg-native

audreyt commented 7 years ago

This is in our README:

Note: If you would like to require() native modules in a worker, please consider using the process-based tiny-worker instead. It does not use threads, but the WebWorker API is compatible.