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
ephemient
02/04/2023, 6:34 PM
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
Norbi
02/04/2023, 6:45 PM
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
Pablichjenkov
02/05/2023, 12:31 AM
It happens to me the first time right but once you get used to it, you get used to it 🤷🏻