fun foo() : Flow<Int> = flow { for (i in 1..3) { delay(100) emit(i) } } fun main() = runBlocking<Unit> { foo().collect { value -> println(value) } }
(i in
)