ID EN
Unittest

enterAsyncContext

Python 3.11

Enter the supplied asynchronous context manager. If successful, also add its __aexit__() method as a cleanup function by addAsyncCleanup() and return the result of the __aenter__() method.

Syntax

PYTHON
coroutine enterAsyncContext(cm)

See Also

asynchronous context manager __aexit__() addAsyncCleanup() __aenter__()