Norbi
02/04/2023, 10:05 AMFlow.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? :)
ephemient
02/04/2023, 6:34 PMFlowCollector
, 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 perspectiveNorbi
02/04/2023, 6:45 PMPablichjenkov
02/05/2023, 12:31 AM