Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
A coroutine delay function.
Link copied to clipboard
class RecurringTimer(val duration: Duration, interval: Duration = 100.milliseconds, timeSource: TimeSource = TimeSource.Monotonic, delayFunction: DelayFunction = { delayDuration -> delay(delayDuration) }, coroutineScope: CoroutineScope = MainScope()) : ControllableTimer
Timer based on the system clock.
Functions
Link copied to clipboard
Awaits for the Timer to reach the Timer.State.NotRunning.Finished state.
Link copied to clipboard
Duration that has elapsed while Timer.state was Timer.State.Running.