Skip to content

Latest commit

 

History

History

worker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

WASMagic Worker Threads

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.

Why?

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

Running this example requires building the parent project.

Install dependencies in this folder:

npm install

Run:

node index.mjs