Searched refs:aclosing (Results 1 – 5 of 5) sorted by relevance
4 AsyncExitStack, nullcontext, aclosing, contextmanager)326 cm_docstring = aclosing.__doc__327 obj = aclosing(None)338 async with aclosing(x) as y:351 async with aclosing(x) as y:375 async with aclosing(x) as y:
184 .. class:: aclosing(thing)192 async def aclosing(thing):198 Significantly, ``aclosing()`` supports deterministic cleanup of async202 from contextlib import aclosing204 async with aclosing(my_generator()) as values:
343 class aclosing(AbstractAsyncContextManager): class
557 Add ``contextlib.aclosing`` for deterministic cleanup of async generators
964 Add a :func:`contextlib.aclosing` context manager to safely close async generators