Companion

object Companion

Properties

Link copied to clipboard

A disabled concurrency strategy with no concurrency (tasks are executed sequentially).

Functions

Link copied to clipboard
fun exponential(maximumConcurrency: Int, minimumConcurrency: Int = 1, factor: Int = 2): ConcurrencyStrategy

Creates an exponential concurrency strategy that increases concurrency exponentially for each step.

Link copied to clipboard
fun fixed(concurrency: Int): ConcurrencyStrategy

Creates a static concurrency strategy with a fixed level of concurrency.

Link copied to clipboard
fun increaseBy(maximumConcurrency: Int, minimumConcurrency: Int = 1, factor: (Int) -> Int): ConcurrencyStrategy

Creates a custom concurrency strategy that increases concurrency based on the provided factor function.

Link copied to clipboard
fun increaseByOne(maximumConcurrency: Int, minimumConcurrency: Int = 1): ConcurrencyStrategy

Creates a concurrency strategy that increases concurrency by one for each step.

Link copied to clipboard
fun maximumAllowedAfterFirstIteration(maximumConcurrency: Int, minimumConcurrency: Int = 1): ConcurrencyStrategy

Creates a concurrency strategy that uses the maximum concurrency level allowed after the first iteration.