Identify AsyncExitStack coroutine methods
`enter_async_context()` and `aclose()` are coroutine methods.
This commit is contained in:
parent
8f04a84755
commit
bc85fdb7b7
|
@ -463,7 +463,7 @@ Functions and classes provided:
|
|||
The :meth:`close` method is not implemented, :meth:`aclose` must be used
|
||||
instead.
|
||||
|
||||
.. method:: enter_async_context(cm)
|
||||
.. coroutinemethod:: enter_async_context(cm)
|
||||
|
||||
Similar to :meth:`enter_context` but expects an asynchronous context
|
||||
manager.
|
||||
|
@ -477,7 +477,7 @@ Functions and classes provided:
|
|||
|
||||
Similar to :meth:`callback` but expects a coroutine function.
|
||||
|
||||
.. method:: aclose()
|
||||
.. coroutinemethod:: aclose()
|
||||
|
||||
Similar to :meth:`close` but properly handles awaitables.
|
||||
|
||||
|
|
Loading…
Reference in New Issue