subConcurrencyPoolFrom()
Function
subConcurrencyPoolFrom(size:
number
, pool:ConcurrencyPool
):ConcurrencyPool
Creates a sub concurrency pool which acquires tokens from the parent pool instead. The size of this sub pool is the max limit it can acquire.
This is useful when resource distribution is needed.
Source: packages/concurrency-utils/src/lib/concurrency-pool.ts:95
Parameters
Parameter | Type |
---|---|
size | number |
pool | ConcurrencyPool |