Hi Guys, does the ktor client support streaming, s...
# ktor
u
Hi Guys, does the ktor client support streaming, suspending downloads? I just realised, that
IncomingContent
can produce a
ByteChannel
, but not not an
asynchronousByteChannel
d
IncomingContent
has a
fun readChannel(): ByteReadChannel
, and
ByteReadChannel
is not a java’s
ByteChannel
, but this: https://github.com/Kotlin/kotlinx.coroutines/blob/379f210f1d6f6ee91d6198348bd16306c93153ce/core/kotlinx-coroutines-io/src/main/kotlin/kotlinx/coroutines/experimental/io/ByteReadChannel.kt So it should be already fully asynchronous
👏 1
u
nice catch. thank you
👍 1