how to convert `Flux<T>` to `Channel<T&gt...
# coroutines
r
how to convert
Flux<T>
to
Channel<T>
?
z
do you mean
Flow<T>
to
Flow<T>
?
r
there is only the reverse function
ReceiveChannel.asFlux
z
it doesn’t make sense to convert from flux to channel
if you need it, you are likely doing something wrong
r
I have a websocket source which gives me Flux
z
so have a websocket source which gives you a
Flow<T>
r
I have a service wanting the data as Channel<T>
z
unsubscribing from the websocket source should close it
this is what
Flow<T>
is for
the service is wrong then^^
r
I would like to connect one to another 🙂
you can do that, but it’s bad
the service should be updated to consume a
Flow<T>
r
I know it probably should
thx for help
👍 1