https://kotlinlang.org logo
#coroutines
Title
# coroutines
t

tseisel

04/07/2019, 1:52 PM
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

gildor

04/08/2019, 12:49 AM
Flow will be canceled on cancellation of coroutine from which a terminal operator of Flow was called
2 Views