From: Joongi Kim Date: Sat, 3 Mar 2018 16:43:54 +0000 (+0900) Subject: Fix missing coroutine declaration in the asyncio documentation. (#5964) X-Git-Tag: v3.8.0a1~2133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13cfd57dcf58485d6242fd8118c6ea4b10e29aab;p=python Fix missing coroutine declaration in the asyncio documentation. (#5964) --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 71dbe06c89..485e1b843d 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -682,7 +682,7 @@ Task functions This function is a :ref:`coroutine `. -.. function:: shield(arg, \*, loop=None) +.. coroutinefunction:: shield(arg, \*, loop=None) Wait for a future, shielding it from cancellation.