Home
last modified time | relevance | path

Searched refs:aclosing (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/test/
Dtest_contextlib_async.py4 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:
/third_party/python/Doc/library/
Dcontextlib.rst184 .. class:: aclosing(thing)
192 async def aclosing(thing):
198 Significantly, ``aclosing()`` supports deterministic cleanup of async
202 from contextlib import aclosing
204 async with aclosing(my_generator()) as values:
/third_party/python/Lib/
Dcontextlib.py343 class aclosing(AbstractAsyncContextManager): class
/third_party/python/Misc/NEWS.d/
D3.10.0a2.rst557 Add ``contextlib.aclosing`` for deterministic cleanup of async generators
/third_party/python/Doc/whatsnew/
D3.10.rst964 Add a :func:`contextlib.aclosing` context manager to safely close async generators