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

Implement an actor registry #1893

Closed
guilload opened this issue Aug 28, 2022 · 1 comment
Closed

Implement an actor registry #1893

guilload opened this issue Aug 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@guilload
Copy link
Member

Sometimes, we know an actor must exist uniquely on a node.

impl Registry {
  fn register<A>(actor: A);
  
  fn get<A>(&self) -> Option<Mailbox<A>>;
  
  fn require<A>(&self) -> Mailbox<A>; 
}
@guilload guilload added the enhancement New feature or request label Aug 28, 2022
@fulmicoton
Copy link
Contributor

fulmicoton commented Sep 6, 2022

What does require does?

Can you point one or more specific actor / place in the code where that would help?
(that's to help getting the right API)

fulmicoton added a commit that referenced this issue Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants