ktk-webworker
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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));

/ktk-webworker/

    Package Sidebar

    Install

    npm i ktk-webworker

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    13.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • sumnus_eric