spawn-worker
Spawn a web worker with a function
Install
$ npm i spawn-worker
Usage
const spawn = ; // Single workerconst worker = ; worker { console; // 'Yo!'}; // Multiple workersconst workers = ; workers;
API
spawn(function[, count])
function
Function to be executed inside of a workercount
Number of workers, Optional, Default: 1- Return: single or multiple instances of
Worker
License
MIT