delayed

@JvmName(name = "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


@JvmName(name = "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