Package-level declarations

JDK 8's Duration support via additional overloads for existing time-based operators.

Functions

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

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

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

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

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

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

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

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

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

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

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

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