Identify AsyncExitStack coroutine methods

`enter_async_context()` and `aclose()` are coroutine methods.
This commit is contained in:
Naglis Jonaitis 2020-06-14 15:04:21 +03:00
parent 8f04a84755
commit bc85fdb7b7
No known key found for this signature in database
GPG Key ID: 54DA26AC89685C57
1 changed files with 2 additions and 2 deletions

View File

@ -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.