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
fbdd075c64
commit
bd92cfe632
|
@ -630,7 +630,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