From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 3 Mar 2018 21:22:49 +0000 (-0800) Subject: Fix missing coroutine declaration in the asyncio documentation. (GH-5964) X-Git-Tag: v3.7.0b3~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f7cf7eb8a2c9a1766780ebf225a2f4c0640788e;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 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.