arrow-fx-coroutines / arrow.fx.coroutines / Schedule / delayed
fun ~~delayed~~(f: suspend (duration:
Duration
) ->
Duration
):
Schedule
<Input, Output>
Deprecated: delayed is deprecated in favor of delay or delayedNanos. 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.
Adjusts the delay of a schedule’s Decision.
fun <A> ~~delayed~~(delaySchedule:
Schedule
<A,
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.
@JvmName("delayedNanos") fun <A> delayed(delaySchedule:
Schedule
<A,
Double
>):
Schedule
<A,
Double
>
Creates a Schedule that uses another Schedule to generate the delay of this schedule. Continues for as long as delaySchedule continues and adds the output of delaySchedule to the delay that delaySchedule produced. Also returns the full delay as output.
The Schedule delaySchedule is should specify the delay in nanoseconds.
A common use case is to define a unfolding schedule and use the result to change the delay. For an example see the implementation of spaced, linear, fibonacci or exponential
@ExperimentalTime @JvmName("delayedDuration") fun <A> delayed(delaySchedule:
Schedule
<A,
Duration
>):
Schedule
<A,
Duration
>
Creates a Schedule that uses another Schedule to generate the delay of this schedule. Continues for as long as delaySchedule continues and adds the output of delaySchedule to the delay that delaySchedule produced. Also returns the full delay as output.
A common use case is to define a unfolding schedule and use the result to change the delay. For an example see the implementation of spaced, linear, fibonacci or exponential
Do you like Arrow?
✖