diff options
author | Joongi Kim <me@daybreaker.info> | 2018-03-03 16:43:54 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2018-03-03 16:43:54 (GMT) |
commit | 13cfd57dcf58485d6242fd8118c6ea4b10e29aab (patch) | |
tree | aa0dd7370aef3f25f708fec6187541e9e7d04b9f /Doc | |
parent | b21d155f57d284aecf9092a9bd24258293965c2f (diff) | |
download | cpython-13cfd57dcf58485d6242fd8118c6ea4b10e29aab.zip cpython-13cfd57dcf58485d6242fd8118c6ea4b10e29aab.tar.gz cpython-13cfd57dcf58485d6242fd8118c6ea4b10e29aab.tar.bz2 |
Fix missing coroutine declaration in the asyncio documentation. (#5964)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-task.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 71dbe06..485e1b8 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 <coroutine>`. -.. function:: shield(arg, \*, loop=None) +.. coroutinefunction:: shield(arg, \*, loop=None) Wait for a future, shielding it from cancellation. |