arrow-fx-coroutines / arrow.fx.coroutines / Schedule / fibonacci

fibonacci

fun <A> ~~fibonacci~~(one: Duration): 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> fibonacci(one: Duration): Schedule<A, Duration>

Creates a Schedule that continues with increasing delay by adding the last two delays.

fun <A> fibonacci(one: Double): Schedule<A, Double>

Creates a Schedule that continues with increasing delay by adding the last two delays.

Parameters

one - initial delay in nanoseconds

Do you like Arrow?

Arrow Org
<