addFixedUpdater
fun <T : View> T.addFixedUpdater(timesPerSecond: Frequency, initial: Boolean = true, limitCallsPerFrame: Int = 16, updatable: T.() -> Unit): Cancellable
fun <T : View> T.addFixedUpdater(time: TimeSpan, first: Boolean = true, limitCallsPerFrame: Int = 16, updatable: T.() -> Unit): CloseableCancellable
Adds an updatable block that will be executed every time time, the calls will be discretized on each frame and will handle accumulations. The first properly allows to adjust if the updatable will be called immediately after calling this function. To avoid executing too many blocks, when there is a long pause, limitCallsPerFrame limits the number of times the block can be executed in a single frame.