Initialization function for script-based worker threads
// worker.jsimport { workerInit } from 'nanothreads';workerInit(self, (a, b) => a + b);
Thread to see how to create the worker thread
Generated using TypeDoc
Initialization function for script-based worker threads
Example
See
Thread to see how to create the worker thread