ParallelismConfigScope

class ParallelismConfigScope(workersCount: Int = DEFAULT_PARALLEL_WORKER_COUNT, var dispatcher: CoroutineDispatcher = DEFAULT_PARALLEL_DISPATCHER) : ParallelismConfig

ParallelismConfigScope - Creating ParallelismConfig with Kotlin DSL style.

See also

Constructors

Link copied to clipboard
constructor(workersCount: Int = DEFAULT_PARALLEL_WORKER_COUNT, dispatcher: CoroutineDispatcher = DEFAULT_PARALLEL_DISPATCHER)

Properties

Link copied to clipboard
open override var dispatcher: CoroutineDispatcher

dispatcher - dispatcher for parallel coroutines.

Link copied to clipboard

Property for displaying availability of parallel mode of operation.

Link copied to clipboard
open override var workersCount: Int

workersCount - the number of launched coroutines which can be executed in parallel processing.

Functions

Link copied to clipboard

Deep clones the current parallelism configuration.