From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 3 Mar 2018 21:23:31 +0000 (-0800) Subject: Fix missing coroutine declaration in the asyncio documentation. (GH-5964) X-Git-Tag: v3.6.5rc1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd92cfe632228ea4d6a1c0dc9506baa18d353dc1;p=python Fix missing coroutine declaration in the asyncio documentation. (GH-5964) (cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab) Co-authored-by: Joongi Kim --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index cc8fffb065..5b801aaf8e 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -630,7 +630,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.