``` fun readStream() = asyncGenerate { while (tru...
# coroutines
d
Copy code
fun readStream() = asyncGenerate {
	while (true) {
		val ba: Any = ___read(1)
		println("Read: $ba")
		val c: Any = (ba as ByteArray)[0]
		yield(c)
	}
}
println is executed before __read method has produced any result