JobPool constructor

JobPool(
  1. int concurrency
)

Builds a pool clamped to 1..16 workers.

Implementation

JobPool(int concurrency)
  : _concurrency = concurrency < 1
        ? 1
        : (concurrency > 16 ? 16 : concurrency);