arrow-fx-coroutines / arrow.fx.coroutines / Schedule / exponential
fun <A> ~~exponential~~(base:
Duration
, factor:
Double
= 2.0):
Schedule
<A,
Duration
>
Deprecated: arrow.fx.coroutines.Duration API in Schedule is deprecated in favor of Double and kotlin.time.Duration, and will be removed in 0.13.0.
@ExperimentalTime fun <A> exponential(base:
Duration
, factor:
Double
= 2.0):
Schedule
<A,
Duration
>
Creates a Schedule that increases its delay exponentially with a given factor and base. Delays can be calculated as base * factor ^ n where n is the number of executions.
fun <A> exponential(base:
Double
, factor:
Double
= 2.0):
Schedule
<A,
Double
>
Creates a Schedule that increases its delay exponentially with a given factor and base. Delays can be calculated as base * factor ^ n where n is the number of executions.
base
- the base delay in nanoseconds
Do you like Arrow?
✖