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

NameSignatureSynopsis
Operations
boundedParallelism.bounded countCreates a positive concurrency bound.
ofProcessorsParallelism.ofProcessors sizeSizes a concurrency bound from the number of processors available to the process.

Operations

kind:member

bounded

Parallelism.bounded count
Member
Creates a positive concurrency bound.

Parameters

NameTypeDescription
countint

Returns

Parallelism
kind:member

ofProcessors

Parallelism.ofProcessors size
Member
Sizes a concurrency bound from the number of processors available to the process.

Parameters

NameTypeDescription
sizeint -> intComputes the bound from the processor count.

Returns

Parallelism

Verification Examples

files |> Flow.traversePar (Parallelism.ofProcessors id) hashFile