We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21bb6fb commit d4fabbfCopy full SHA for d4fabbf
kotlinx-coroutines-core/common/src/channels/ConflatedBroadcastChannel.kt
@@ -91,7 +91,7 @@ public class ConflatedBroadcastChannel<E>() : BroadcastChannel<E> {
91
*/
92
public val valueOrNull: E? get() = when (val state = _state.value) {
93
is Closed -> null
94
- is State<*> -> UNDEFINED.unbox(state.value)
+ is State<*> -> UNDEFINED.unbox<E?>(state.value)
95
else -> error("Invalid state $state")
96
}
97
0 commit comments