mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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