mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Fix missing coroutine declaration in the asyncio documentation. (GH-5964)
(cherry picked from commit 13cfd57dcf
)
Co-authored-by: Joongi Kim <me@daybreaker.info>
This commit is contained in:
parent
a13b65422a
commit
0f7cf7eb8a
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ Task functions
|
||||||
|
|
||||||
This function is a :ref:`coroutine <coroutine>`.
|
This function is a :ref:`coroutine <coroutine>`.
|
||||||
|
|
||||||
.. function:: shield(arg, \*, loop=None)
|
.. coroutinefunction:: shield(arg, \*, loop=None)
|
||||||
|
|
||||||
Wait for a future, shielding it from cancellation.
|
Wait for a future, shielding it from cancellation.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue