collect

open suspend override fun collect(collector: FlowCollector<T>)

Adds the given collector into collectors and suspends until cancellation.

This method is thread-safe and can be safely invoked from concurrent coroutines without external synchronization.