Now that `Flow` is there, are channels still the r...
# coroutines
t
Now that
Flow
is there, are channels still the right tool for wrapping callback APIs with `registerListener`/`unregisterListener` ? Looks like
flowViaChannel
has been written for that purpose, but I don't see a way to "close" a
Flow
like with channels and Flowables
1
g
Flow will be canceled on cancellation of coroutine from which a terminal operator of Flow was called