mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix missing coroutine declaration in the asyncio documentation. (#5964)
This commit is contained in:
parent
b21d155f57
commit
13cfd57dcf
1 changed files with 1 additions and 1 deletions
|
|
@ -682,7 +682,7 @@ Task functions
|
|||
|
||||
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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue