lineChangingPeriodically

fun lineChangingPeriodically(period: Long, block: suspend () -> Component)(source)

Deprecated

This function has been replaced with "updatingLine"

Replace with

import kotlin.time.Duration.Companion.milliseconds
updatingLine(period.milliseconds) { block() }

Adds a line where the content is changing / updating periodically.

Parameters

period

the period in milliseconds

block

the callback which is executed each time to get the content of the line