Skip to content

Instantly share code, notes, and snippets.

@denis-zhdanov
denis-zhdanov / test.kt
Created February 21, 2021 18:22
Coroutines sample 1
fun main() {
val durationMs = measureTimeMillis {
val result = serve()
println("Got result $result")
}
println("The processing is done in $durationMs ms")
}
fun serve(): Collection<Int> {
return runBlocking {