ID EN
Contextlib

AbstractAsyncContextManager

Python 3.11

An abstract base class for classes that implement object.__aenter__() and object.__aexit__(). A default implementation for object.__aenter__() is provided which returns self while object.__aexit__() is an abstract method which by default returns None. See also the definition of Asynchronous Context Managers.

Syntax

PYTHON
class contextlib.AbstractAsyncContextManager

See Also

abstract base class object.__aenter__() object.__aexit__() object.__aenter__() object.__aexit__() Asynchronous Context Managers