mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-03-17 06:00:23 +00:00
:async: is the option in regular Sphinx
This commit is contained in:
parent
789e976128
commit
988429dbe0
1 changed files with 2 additions and 0 deletions
|
|
@ -616,6 +616,7 @@ Functions and classes provided:
|
|||
instead.
|
||||
|
||||
.. method:: enter_async_context(cm)
|
||||
:async:
|
||||
|
||||
Similar to :meth:`ExitStack.enter_context` but expects an asynchronous context
|
||||
manager.
|
||||
|
|
@ -635,6 +636,7 @@ Functions and classes provided:
|
|||
Similar to :meth:`ExitStack.callback` but expects a coroutine function.
|
||||
|
||||
.. method:: aclose()
|
||||
:async:
|
||||
|
||||
Similar to :meth:`ExitStack.close` but properly handles awaitables.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue