How do we cancel flow collections before all items...
# coroutines
a
How do we cancel flow collections before all items are collected? Should we throw a cancellationexception like the internal
collectWhile
function?
g
Yes, you can do this, but you also can do filter and just call .first() to get first value which passed your filter it will close flow