From bd92cfe632228ea4d6a1c0dc9506baa18d353dc1 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 3 Mar 2018 13:23:31 -0800 Subject: [PATCH] Fix missing coroutine declaration in the asyncio documentation. (GH-5964) (cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab) Co-authored-by: Joongi Kim --- Doc/library/asyncio-task.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index cc8fffb0659..5b801aaf8ec 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.