```kotlin val stream = MutableSharedFlow<Unit>() stream // .onEach {} // workaround .buffer(0) .produceIn(GlobalScope) yield() // To make sure subscription has started. var i = 0 while (true) { stream.emit(Unit) println("Emitted $i") i++ } ``` Without the workaround, there are 64 emissions before suspension happens. There should be at most 1 emissions. The bug is either in [`SharedFlow` fusion](https://github.com/Kotlin/kotlinx.coroutines/blob/65e1b84f742a4fff14c67a11a873a4977a0ba539/kotlinx-coroutines-core/common/src/flow/SharedFlow.kt#L693) or in this [function](https://github.com/Kotlin/kotlinx.coroutines/blob/65e1b84f742a4fff14c67a11a873a4977a0ba539/kotlinx-coroutines-core/common/src/flow/internal/ChannelFlow.kt#L15) that `produceIn` uses.