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
|
@ -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…
Reference in New Issue