Is there anyway to be notified when a `ByteReadCha...
# ktor
a
Is there anyway to be notified when a
ByteReadChannel
has been exhausted (or closed)?
e
Hi @Aaron Todd, there are no public API for that. You can create wrapper
writer
coroutine with
joinTo
inside and put in finally block the logic you need
a
Hey @e5l thanks for the response. Can you elaborate a bit? I'm looking at
joinTo
now but there isn't any documentation on it. Based on the API surface it just looks like it's copying to another channel?
e
It moves the content from one channel to another
a
thanks, I'll see if it satisfies my needs.