What's the way to send messages back and forth wit...
# coroutines
l
What's the way to send messages back and forth with coroutines? I have a http connection where I do post and it returns a flow with the respond bytes stream . I need to change this to be able to send multiple posts because I want to keep the connection open using keep-alive so I need to send bytes back and forth.
Copy code
<https://github.com/Kotlin/coroutines-examples/blob/master/examples/generator/generator.kt>
I was using this some where but it doesn't allow me to suspend
z
Sounds like probably a good use case for `Channel`s?
l
k, so just two channels
👍 2