Manajer konteks asinkron, mirip dengan ExitStack, yang mendukung penggabungan manajer konteks sinkron dan asinkron, serta memiliki coroutine untuk logika pembersihan.
class contextlib.AsyncExitStack
async with AsyncExitStack() as stack:
connections = [await stack.enter_async_context(get_connection())
for i in range(5)]
All opened connections will automatically be released at the end of
the async with statement, even if attempts to open a connection
later in the list raise an exception.