You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
It would be nice if AsyncElasticsearch implemented the magic methods (specifically __aenter__() and __aexit__()) to become an async context manager, which would allow code like this:
It would be nice if
AsyncElasticsearch
implemented the magic methods (specifically__aenter__()
and__aexit__()
) to become an async context manager, which would allow code like this:and have the session closed.
Happy to implement this similar to how aiohttp has done it if you are interested!
The text was updated successfully, but these errors were encountered: