ParallelismUnion
PackageAxial
Creates Parallelism bounds for parallel Flow and stream operators.
Specification
Kind
Union
Members
2
Examples
0
boundedSignature
Parallelism.bounded count
ofProcessorsSignature
Parallelism.ofProcessors size
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| bounded | Parallelism.bounded count | Creates a positive concurrency bound. |
| ofProcessors | Parallelism.ofProcessors size | Sizes a concurrency bound from the number of processors available to the process. |
Operations
kind:member
kind:member
Sizes a concurrency bound from the number of processors available to the process.
Parameters
| Name | Type | Description |
|---|---|---|
| size | int -> int | Computes the bound from the processor count. |
Returns
Parallelism
Verification Examples
files |> Flow.traversePar (Parallelism.ofProcessors id) hashFile
