Sam Garfinkel
03/25/2020, 6:49 PMe5l
03/25/2020, 6:50 PMByteReadChannel
perfectly fits the description 🙂e5l
03/25/2020, 6:51 PMclient.get<ByteReadChannel>(...)
Sam Garfinkel
03/25/2020, 6:51 PMe5l
03/25/2020, 6:52 PMSam Garfinkel
03/25/2020, 7:00 PMsuspend fun foo() = coroutineScope {
val bar = client.get<..>
val first = async { bar.readAllButSuspendCoroutineAsNeeded() }
val second = async { bar.readAllButSuspendCoroutineAsNeeded() }
println("${first.await()} ${second.await()}")
}
Sam Garfinkel
03/25/2020, 7:01 PMbar