timer

fun <T> timer(value: T, timeMillis: Long): Flow<T>(source)

Creates a Flow that will wait for a specified time, before emitting the value.


fun <T> timer(value: T, duration: Duration): Flow<T>(source)

Creates a Flow that will wait for a given duration, before emitting the value.