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

Optimize handlers selection during callbacks #42

Open
tcalmant opened this issue Jun 25, 2015 · 0 comments
Open

Optimize handlers selection during callbacks #42

tcalmant opened this issue Jun 25, 2015 · 0 comments

Comments

@tcalmant
Copy link
Owner

When a handler event occurs, e.g. when a controller changes state, all the handlers are called back, whereas only those of "service_provider" kind should.

Proposal: the StoredInstance.__safe_handlers_callback() method should have the target "kind" as first parameter to select those specific handlers.
If this kind is None, then all handlers must be notified.

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

No branches or pull requests

1 participant