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

Andrew Gazelka

06/03/2019, 6:50 PM
are flows kinda jank for this then??? seems like it is bad that you have to throw an exception to exit a
Flow
...
it would seem this would break the purpose of `Flow`s
e

elizarov

06/03/2019, 7:06 PM
There is nothing bad. It just the way cancellation works with coroutines. And you don’t have to implement it yourself -
first
implementation does it for you.
5 Views