https://kotlinlang.org logo
c

carlos cdmp

12/17/2020, 2:30 PM
As I am using ktor client for networking, is there a way to directly get the call executed inside a Kotlin Flow or, even better, StateFlow?
m

mbonnin

12/17/2020, 3:07 PM
Aren't ktor methods
suspend
by default?
Flow
doesn't make a lot of sense in the context of a HTTP request since you get single values
5
c

carlos cdmp

12/18/2020, 2:17 AM
Im consuming a websocket, and using a channel, just ondering if there was a built way to consume it directly as a flow