CollectFromFlow

fun <T> CollectFromFlow(flow: Flow<T>, key1: Any? = null, key2: Any? = null, collector: FlowCollector<T>)

Collect from flow and emit values into collector, whilst relaunching the collection upon flow, key1 or key2 changing.