collectAsync

suspend fun collectAsync(collector: FlowCollector<A>)(source)

Launches a handler that asynchronously listens to updates on the state.

Comparable to Flow.collect.