1.0.2 • Published 4 years ago

@reignmodule/logger v1.0.2

Weekly downloads
3
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.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago