Package kotlinx.coroutines.time

Functions

debounce
Link copied to clipboard
fun <T> Flow<T>.debounce(timeout: Duration): Flow<T>

"java.time" adapter method for kotlinx.coroutines.flow.debounce.

delay
Link copied to clipboard
suspend fun delay(duration: Duration)

"java.time" adapter method for kotlinx.coroutines.delay.

onTimeout
Link copied to clipboard
fun <R> SelectBuilder<R>.onTimeout(duration: Duration, block: suspend () -> R)

"java.time" adapter method for SelectBuilder.onTimeout.

sample
Link copied to clipboard
fun <T> Flow<T>.sample(period: Duration): Flow<T>

"java.time" adapter method for kotlinx.coroutines.flow.sample.

withTimeout
Link copied to clipboard
suspend fun <T> withTimeout(duration: Duration, block: suspend CoroutineScope.() -> T): T

"java.time" adapter method for kotlinx.coroutines.withTimeout.

withTimeoutOrNull
Link copied to clipboard
suspend fun <T> withTimeoutOrNull(duration: Duration, block: suspend CoroutineScope.() -> T): T?

"java.time" adapter method for kotlinx.coroutines.withTimeoutOrNull.