withTimeout

suspend fun <T> withTimeout(duration: Duration, block: suspend CoroutineScope.() -> T): T(source)

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