ParallelismRecord

PackageAxial
Creates concurrency and placement policies for parallel Flow and stream operators.

Fields

NameTypeDescription
CountCountNo description available.
PlacementPlacementNo description available.

Specification

Kind
Record
Members
7
Examples
0
boundedSignature
Parallelism.bounded count
ofProcessorsSignature
Parallelism.ofProcessors size
runOnSignature
Parallelism.runOn placement parallelism
cpuSignature
Parallelism.cpu
ioSignature
Parallelism.io count

Summary

NameSignatureSynopsis
Operations
boundedParallelism.bounded countCreates a positive concurrency bound whose work starts inline.
ofProcessorsParallelism.ofProcessors sizeSizes an inline concurrency bound from the number of processors available to the process.
runOnParallelism.runOn placement parallelismRuns every item using placement, preserving the concurrency bound.
cpuParallelism.cpu Uses one thread-pool worker per available processor for CPU-heavy work.
ioParallelism.io countRuns up to count waiting operations inline.
blockingParallelism.blocking countRuns up to count blocking operations on dedicated threads.
adaptiveParallelism.adaptive countCreates a fresh adaptive learner for each traversal run.

Operations

kind:member

bounded

Parallelism.bounded count
Member
Creates a positive concurrency bound whose work starts inline.

Parameters

NameTypeDescription
countint

Returns

Parallelism
kind:member

ofProcessors

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

Parameters

NameTypeDescription
sizeint -> int

Returns

Parallelism
kind:member

runOn

Parallelism.runOn placement parallelism
Member
Runs every item using placement, preserving the concurrency bound.

Parameters

NameTypeDescription
placementRunOn
parallelismParallelism

Returns

Parallelism
kind:member

cpu

Parallelism.cpu
Member
Uses one thread-pool worker per available processor for CPU-heavy work.

Returns

Parallelism
kind:member

io

Parallelism.io count
Member
Runs up to count waiting operations inline.

Parameters

NameTypeDescription
countint

Returns

Parallelism
kind:member

blocking

Parallelism.blocking count
Member
Runs up to count blocking operations on dedicated threads.

Parameters

NameTypeDescription
countint

Returns

Parallelism
kind:member

adaptive

Parallelism.adaptive count
Member
Creates a fresh adaptive learner for each traversal run.

Parameters

NameTypeDescription
countint

Returns

Parallelism