anyway, I'm playing with channels now :slightly_sm...
# coroutines
v
anyway, I'm playing with channels now 🙂
Copy code
coroutineScope {
    val ch = produce {
        for (i in 1..30)
            send(i)
        close()
    }

    ch.consumeEach {
        launch {
            print("offering $it...")
            queue.offer(it).await()
            println("offered $it")
        }
    }
}