PyDocs

Nav

Python Runtime Services

AsyncExitStack.push_async_exit

  • AsyncExitStack.push_async_exit(exit)
Registers a coroutine function with the standard __aexit__ method
signature.

Can suppress exceptions the same way __aexit__ method can.
Also accepts any object with an __aexit__ method (registering a call
to the method instead of the object itself).
Changed in 3.15
  • 3.15: Added support for arbitrary descriptors __aexit__().
0 Examples
No examples for contextlib/AsyncExitStack.push_async_exit.
See Also
No see-alsos for contextlib/AsyncExitStack.push_async_exit
0 Notes
No notes for AsyncExitStack.push_async_exit