Package com. juul. tuulbox. coroutines. delay
Types
DelayStrategy
Link copied to clipboard
interface DelayStrategy
Content copied to clipboard
Dynamic
Link copied to clipboard
Dynamic DelayStrategy, allowing for switching between multiple other DelayStrategies utilizing a trigger (to provide an input) and a selector function (to determine a resulting DelayStrategy from said input).
ExponentialBackoff
Link copied to clipboard
class ExponentialBackoff(baseTimeMillis: Long, multiplier: Float, minimumDelayMillis: Long, maximumDelayMillis: Long) : DelayStrategy
Content copied to clipboard
FixedDelay
Link copied to clipboard
DelayStrategy that, when await is called, will delay for a fixed amount of time, specified by delayMillis.