Closed
Description
- Node.js Version: 12.16.3
- OS: Linux
- Scope: runtime
- Module (and version): worker_threads
Hi, I've been recently playing with worker threads as in version 12.16.3.
The doc explicitly says that you can't pass a C++ backed object via postMessage: https://nodejs.org/dist/latest-v12.x/docs/api/worker_threads.html#worker_threads_port_postmessage_value_transferlist
And this is true, you can't :) The standard makes it pretty obvious.
Any chance someone may shed some light on why is it so? Or even better, maybe someone has already found a workaround?
Metadata
Metadata
Assignees
Labels
No labels