arrow-fx-coroutines / arrow.fx.coroutines / Schedule / spaced

spaced

fun <A> ~~spaced~~(interval: Duration): Schedule<A, Int> 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.

Creates a Schedule that continues with a fixed delay.

fun <A> spaced(interval: Double): Schedule<A, Int>

Creates a Schedule that continues with a fixed delay.

Parameters

interval - fixed delay in nanoseconds@ExperimentalTime fun <A> spaced(interval: Duration): Schedule<A, Int>

Creates a Schedule that continues with a fixed delay.

Parameters

interval - fixed delay in Duration

Do you like Arrow?

Arrow Org
<