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

support for asynchronous context managers #134

Open
joprice opened this issue Sep 30, 2024 · 0 comments
Open

support for asynchronous context managers #134

joprice opened this issue Sep 30, 2024 · 0 comments

Comments

@joprice
Copy link

joprice commented Sep 30, 2024

Is it possible to bind to async context managers? They have a magic method __aexit__ that seems like it would map to the IAsyncDisposable interface, but I can't see to get the latter to work with tasks. Maybe a helper method could be introduced if the built in use facility can't support this?

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