interface ~~Timer~~<F>
Deprecated: The IO datatype and it’s related type classes will disappear in Arrow 0.13.0. All useful operations are offered directly over suspend functions by Arrow Fx Coroutines. https://arrow-kt.io/docs/fx/async/
Timer allows to sleep for a Duration in F. This behaviour can be derived from Concurrent, and can be used to implement backing off retries etc.
Since sleeping is done by Timer it allows for easy modification in testing by providing a no-op TestTimer
sleep | Sleeps for a given duration without blocking a thread.abstract fun sleep(duration: Duration ): Kind<F, Unit > |
invoke | operator fun <F> invoke(CF: Concurrent <F>): Timer <F> |
Do you like Arrow?
✖