rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
102 lines (46 loc) • 1.31 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [IWorkerPoolConfig](./rc-js-util.iworkerpoolconfig.md)
## IWorkerPoolConfig interface
Configuration for a [IWorkerPool](./rc-js-util.iworkerpool.md)<!-- -->.
**Signature:**
```typescript
export interface IWorkerPoolConfig
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[overflowMode?](./rc-js-util.iworkerpoolconfig.overflowmode.md)
</td><td>
`readonly`
</td><td>
[EWorkerPoolOverflowMode](./rc-js-util.eworkerpooloverflowmode.md)
</td><td>
_(Optional)_
</td></tr>
<tr><td>
[queueSize](./rc-js-util.iworkerpoolconfig.queuesize.md)
</td><td>
`readonly`
</td><td>
number
</td><td>
The number of jobs each thread can buffer. Tune this in conjunction with the distribution strategy, \# of workers and queue size to meet your needs.
</td></tr>
<tr><td>
[workerCount](./rc-js-util.iworkerpoolconfig.workercount.md)
</td><td>
`readonly`
</td><td>
number
</td><td>
The number of threads in the pool.
</td></tr>
</tbody></table>