# exponential

fun <A> exponential(base: Double, factor: Double = 2.0): Schedule<A, Double>

Content copied to clipboard

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.

## Parameters

base

the base delay in nanoseconds

fun <A> exponential(base: Duration, factor: Double = 2.0): Schedule<A, Duration>

Content copied to clipboard

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.