orbit-util / orbit.util.time / ConstantTicker

ConstantTicker

class ConstantTicker

Constructors

<init>

ConstantTicker(scope: CoroutineScope, targetTickRate: Long, clock: Clock, logger: KLogger? = null, exceptionHandler: ((Throwable) -> Unit)? = null, autoStart: Boolean = false, onTick: suspend () -> Unit, onSlowTick: suspend () -> Unit = {})

Functions

start

fun start(): Unit

stop

fun stop(): Unit