FIXED_PERIOD

Adjust delay to maintain fixed period if consumer cannot keep up or is otherwise slow. This is a default mode.

val channel = ticker(delay = 100)
delay(350) // 250 ms late
println(channel.tryReceive().getOrNull()) // prints Unit
println(channel.tryReceive().getOrNull()) // prints null

delay(50)
println(channel.tryReceive().getOrNull()) // prints Unit, delay was adjusted
delay(50)
println(channel.tryReceive().getOrNull()) // prints null, we're not late relatively to previous element