Skip to content

Commit

Permalink
docs: Update docs for context.closing_async()
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Apr 11, 2022
1 parent b4d1a63 commit 4d5f3d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/aiotools.context.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Async Context Manager

.. autoclass:: aiotools.context.aclosing

.. autoclass:: aiotools.context.closing_async

.. autoclass:: aiotools.context.AsyncContextGroup
:members:

Expand Down
2 changes: 2 additions & 0 deletions src/aiotools/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ class closing_async:
"""
An analogy to :func:`contextlib.closing` for objects with ``close()``
methods as async functions.
.. versionadded:: 1.5.6
"""

def __init__(self, thing):
Expand Down

0 comments on commit 4d5f3d4

Please sign in to comment.