-
Notifications
You must be signed in to change notification settings - Fork 1.9k
kotlinx.coroutines.channels.LazyBroadcastCoroutine cannot be cast to kotlinx.coroutines.channels.ConflatedBroadcastChannel #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
By manually implementing it with |
My use case is to remove the member variable and change this line... ...to.... presentation.presentableText = model.title.value
I suggest you make that clearer in the documentation kotlinx.coroutines/common/kotlinx-coroutines-core-common/src/channels/Broadcast.kt Line 49 in d6a5a39
|
As a temporary workaround you can use |
Thanks for the workaround I added:
in anticipation of a being able to use a real ConflatedBroadcastChannel sometime in the future! |
Broadcast channels are obsolete and will be superseded by the corresponding Flow primitives, so closing as "won't fix" |
I would expect this to be a ConflatedBroadcastChannel, in fact I would like an api where I would not have to cast
Also in the meantime is there a workaround for creating a ConflatedBroadcastChannel from an existing ReceiveChannel?
The text was updated successfully, but these errors were encountered: