exponential

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

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


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.