collectInScopeSync

fun collectInScopeSync(collector: FlowCollector<T>): Job(source)

Listens to this event, and emits to the collector if it is called. Launches SharedFlow.collect on the underlying flow in the current CoroutineScope (taken from context), using the fitting synchronous Minecraft main thread dispatcher (syncDispatcher).