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?
Is it possible to bind to async context managers? They have a magic method
__aexit__that seems like it would map to theIAsyncDisposableinterface, but I can't see to get the latter to work with tasks. Maybe a helper method could be introduced if the built inusefacility can't support this?