-
Notifications
You must be signed in to change notification settings - Fork 71
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
Feature. Support asyncio events #212
Comments
Can you please clarify what you mean by "subscribe to async event handlers"? |
For example: |
As for
def dispatcher(event):
zope.component.getSiteManager().subscribers(event, None)
zope.event.subscribers.append(dispatcher) The subscription functions are defined to have no return value for the zope.interface/src/zope/interface/adapter.py Lines 614 to 626 in 255db9d
|
I'd say if you can create a PR that adds support for Python async in a backwards-compatible way, go for it! |
What we are using, it's just and inherited adapter registry that supports async subscrbers. We use, zope.interface, standalone, without relaying on zope.event neither zope.component, because we don't support persistent registries neither context based registres. Addding something like this, will allow us to clean some code, that we are using everywhere.. (The AsyncAdapter registry) |
We use zope.interface and the ZCA almost on every new project we start. The only peace we miss, it's being able to subscribe to async event handlers. We already do it, with a bit of inheritance but, does it make sense to provide a PR to being to support it on the default package?
The text was updated successfully, but these errors were encountered: