interface FlowCollector<in T>(source)
This interface should usually not be implemented directly, but rather used as a receiver in a flow builder when implementing a custom operator. Implementations of this interface are not thread-safe.
Collects the value emitted by the upstream. This method is not thread-safe and should not be invoked concurrently.
Emits all elements from the given channel to this flow collector and cancels (consumes)
the channel afterwards. If you need to iterate over the channel without consuming it,
Collects all the values from the given flow and emits them to the collector.
It is a shorthand for
A mutable SharedFlow that provides functions to emit values to the flow.
An instance of