mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-05-16 02:53:12 +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.
|
instead.
|
||||||
|
|
||||||
.. method:: enter_async_context(cm)
|
.. method:: enter_async_context(cm)
|
||||||
|
:async:
|
||||||
|
|
||||||
Similar to :meth:`ExitStack.enter_context` but expects an asynchronous context
|
Similar to :meth:`ExitStack.enter_context` but expects an asynchronous context
|
||||||
manager.
|
manager.
|
||||||
|
|
@ -635,6 +636,7 @@ Functions and classes provided:
|
||||||
Similar to :meth:`ExitStack.callback` but expects a coroutine function.
|
Similar to :meth:`ExitStack.callback` but expects a coroutine function.
|
||||||
|
|
||||||
.. method:: aclose()
|
.. method:: aclose()
|
||||||
|
:async:
|
||||||
|
|
||||||
Similar to :meth:`ExitStack.close` but properly handles awaitables.
|
Similar to :meth:`ExitStack.close` but properly handles awaitables.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue