Fix missing coroutine declaration in the asyncio documentation. (#5964)

This commit is contained in:
Joongi Kim 2018-03-04 01:43:54 +09:00 committed by Andrew Svetlov
parent b21d155f57
commit 13cfd57dcf

View file

@ -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.