new Workers(Loader, numWorkers)
Parameters:
Name | Type | Description |
---|---|---|
Loader |
* | a webpack worker-loader |
numWorkers |
Number | Maximum number of wokers to use |
- Source:
Methods
(static) getCoreCount() → {Number}
Gets the number of logical CPU cores.
- Source:
Returns:
- Type
- Number
process(data, cb)
Queues some work to be proccessed by a web worker.
Parameters:
Name | Type | Description |
---|---|---|
data |
* | The data to send to the worker |
cb |
function | A callback function to call with the result from the worker |
- Source:
terminate()
Terminates all the web workers.
- Source: