Skip to content
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

Add activation/inactivation tracking for broadcast channel #329

Closed
elizarov opened this issue Apr 13, 2018 · 5 comments
Closed

Add activation/inactivation tracking for broadcast channel #329

elizarov opened this issue Apr 13, 2018 · 5 comments

Comments

@elizarov
Copy link
Contributor

See analysis here: #258 (comment)

TL;DR For various BroadcastChannel implementations it is useful to have ability to track active (at least one subscriber) and inactive (no subscribers) status. We should consider use-cases for it and design a convenient API for them.

Note, that it does not apply to regular channels which do not have a concept of subscriber.

This issue is related to #254

@LouisCAD
Copy link
Contributor

This would be very useful since it'd allow LiveData like channels that could be used in multiplatform projects.

@LouisCAD
Copy link
Contributor

Is there any design path for this? Where the methods would be, their signature, and name ideas?

@elizarov
Copy link
Contributor Author

@LouisCAD There is no design yet. You are welcome to suggest your ideas here.

@SolomonSun2010
Copy link

SolomonSun2010 commented Aug 20, 2018

Can I treat BroadcastChannel as data-flow variables in Oz-Mozart ?https://www.info.ucl.ac.be/~pvr/GeneralOverview.pdf

Data-Driven Concurrency is cool !
see also:
Building Scalable, Highly Concurrent & Fault Tolerant Systems - Lessons Learned
https://www.slideshare.net/jboner/building-scalable-highly-concurrent-fault-tolerant-systems-lessons-learned?from_action=save

Dataflow Concurrency
• Deterministic
• Declarative
• Data-driven
• Threads are suspended until data is available
• Lazy & On-demand
• No difference between:
• Concurrent code
• Sequential code
• Examples: Akka & GPars

@qwwdfsad
Copy link
Contributor

Superseded by the same Flow design problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants