├── .editorconfig ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .npmignore ├── .prettierrc ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── __test__ ├── add.js ├── shareEnv.js └── test.ts ├── jest.config.js ├── package.json ├── src ├── dynamicPool.ts ├── index.ts ├── pool.ts ├── poolWorker.ts ├── promiseWithTimer.ts ├── staticPool.ts ├── taskContainer.ts ├── taskExecutor.ts ├── types.ts └── utils.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/README.md -------------------------------------------------------------------------------- /__test__/add.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/__test__/add.js -------------------------------------------------------------------------------- /__test__/shareEnv.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/__test__/shareEnv.js -------------------------------------------------------------------------------- /__test__/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/__test__/test.ts -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/package.json -------------------------------------------------------------------------------- /src/dynamicPool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/dynamicPool.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/pool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/pool.ts -------------------------------------------------------------------------------- /src/poolWorker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/poolWorker.ts -------------------------------------------------------------------------------- /src/promiseWithTimer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/promiseWithTimer.ts -------------------------------------------------------------------------------- /src/staticPool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/staticPool.ts -------------------------------------------------------------------------------- /src/taskContainer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/taskContainer.ts -------------------------------------------------------------------------------- /src/taskExecutor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/taskExecutor.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SUCHMOKUO/node-worker-threads-pool/HEAD/yarn.lock --------------------------------------------------------------------------------