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

Scoped messages #10

Open
TylerBloom opened this issue Nov 18, 2023 · 0 comments
Open

Scoped messages #10

TylerBloom opened this issue Nov 18, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@TylerBloom
Copy link
Owner

Currently, all messages going into an actor must have a static lifetime. While this can be managed by cloning, it would be nice to provide an API similar to that of thread::scope. This is conceptually very easy, but there are a lot of cornercases, and expressing it will be difficult.

Simply managing the lifetimes of this interprocess communication will require a fair amount of consideration (and a manual Drop implementation). But beyond the Rust-based issues, rendering this pattern into the current semantics of troupe will also be difficult. How do you open a scope? How does the scheduler/actor handle this? Does this require a second actor state? Maybe a trait for the messages?

@TylerBloom TylerBloom added enhancement New feature or request help wanted Extra attention is needed labels Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant