1.0.5 • Published 5 years ago

@reignmodule/throng v1.0.5

Weekly downloads
34
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago