1.0.5 • Published 4 years ago

@reignmodule/throng v1.0.5

Weekly downloads
34
License
ISC
Repository
github
Last release
4 years ago

# Worker Threads

How to use:

import throng from '@reignmodule/throng';

const workerRun = () => { ... }

throng(workerRun);
// Server ready on port 3000
// Server ready on port 3000
// Server ready on port 3000
// Server ready on port 3000

Options

Change option with the second property of throng.

throng(() => void, { workers?: number, env?: any, }): Worker[] | undefined;
  • workers (number): Define workers to work, by default use os.cpus().length.
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago