Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Doc/library/contextlib.rst
Original file line numberDiff line numberDiff line change
Expand Up@@ -409,11 +409,11 @@ Functions and classes provided:
.. versionadded:: 3.2


.. class:: AsyncContextManager
.. class:: AsyncContextDecorator

Similar as ContextManger only for async
Similar to :class:`ContextDecorator` but only for asynchronous functions.

Example of ``ContextDecorator``::
Example of ``AsyncContextDecorator``::

from asyncio import run
from contextlib import AsyncContextDecorator
Expand DownExpand Up@@ -445,6 +445,8 @@ Functions and classes provided:
The bit in the middle
Finishing

.. versionadded:: 3.10


.. class:: ExitStack()

Expand Down