🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@reignmodule/throng

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reignmodule/throng

Worker Threads

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

# 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.

Keywords

worker

FAQs

Package last updated on 26 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts