I think the wording of the documentation of `Flow....
# coroutines
n
I think the wording of the documentation of
Flow.collect()
and
FlowCollector.emit()
is confusing at first read for a newcomer. `Flow.collect()`:
Accepts the given collector and emits values into it.
`FlowCollector.emit()`:
Collects the value emitted by the upstream.
What do you think? :)
e
from the perspective of an implementor of
FlowCollector
, that's correct, and probably you'll be writing more collectors than code that directly uses one. but I can see how that can be confusing from the other perspective
n
I think it would be easier to understand the semantics from the "other perspective" 🙂 Maybe I open an issue about it to discuss... Thanks for your opinion.
p
It happens to me the first time right but once you get used to it, you get used to it 🤷🏻