Make ConflatedBroadcastChannel allocation-free
See original GitHub issueConflatedBroadcastChannel
is used in UI applications as “observable value source” and it would be useful to make it operate in a fully allocation-free way on its send-receive path even though for the cost of losing some lock-freedom (it is not much of importance there).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Shared flows, broadcast channels - Roman Elizarov - Medium
An implementation of a state flow has allocation-free updates, which was not the case with a conflated broadcast channel.
Read more >ConflatedBroadcastChannel - Kotlin
A secondary constructor can be used to create an instance of this class that already holds a value. This channel is also created...
Read more >ConflatedBroadcastChannel - kotlinx-coroutines-core
Opens subscription to this BroadcastChannel and makes sure that the given block consumes all elements from it by always invoking cancel after the...
Read more >Kotlin ConflatedBroadcastChannel.offer() doesn't work?
I am sending a value via MyRepository.myConflatedChannel.offer(myvalue) . I then expect to receive it in collect { } or onEach { } blocks...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No updates yet. We are now focused on two areas:
The idea that I have in mind, though, is that for #1082, instead of turning “ConflatedBroadcastChannel” into the “DataFlow” we can reimplement “DataFlow” from scratch, maybe dropping some for its channel features, thus making it simpler, and open the road to lock-based allocation-free implementation.
This issue will be fixed in #1974 by providing allocation-free capabilities similar to
ConflatedBroadcastChannel
.