This is a worker threads example using the Piscina library. Everything here can be done with worker threads by themselves, but the abstraction removes a couple of steps.
WASMagic is synchronous. If you need to do your processing off of your user
thread or you want to take advantage of multiple CPU cores, and aren't using
cluster
.
Running this example requires building the parent project.
Install dependencies in this folder:
npm install
Run:
node index.mjs