ktk-webworker
v1.0.1
Published
webworker for personal use
Downloads
1
Readme
About The Project
Personal toolkit for webworker pool.
Install
npm i ktk-webworker
Usage
//init, count of workers is equal to computer cores
const url = 'Worker.js'; //path of worker
const wp = WorkerPool.getInstance(url);
//execute
wp.dispatch(data).then(res=>handle(res));