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

Sub-registries for supervision groups #148

Closed
jonasschneider opened this issue Jan 15, 2013 · 2 comments
Closed

Sub-registries for supervision groups #148

jonasschneider opened this issue Jan 15, 2013 · 2 comments

Comments

@jonasschneider
Copy link

Are there any plans to implement sub-registries for a supervision group?

class NestedGroup < Celluloid::SupervisionGroup
  supervise MyActor, as: :reader
  supervise MyActor, as: :writer
end

class MainGroup < Celluloid::SupervisionGroup
  supervise NestedGroup
end

I would find it awesome if I could then refer to Actor[:reader] from within an actor of the group. And if I launch the NestedGroup several times, I get separate actors. Currently these actors are not registered at all (as far as I can see; celluloid beginner).

What do you think?

@tarcieri
Copy link
Member

I definitely want something like this but haven't come up with a good API for it yet

@halorgium
Copy link
Contributor

I started a discussion about this at https://groups.google.com/d/msg/celluloid-ruby/Rd2AurcPNpo/xejk2OT3zwEJ

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

3 participants