Skip to content

Commit

Permalink
Fix missing coroutine declaration in the asyncio documentation. (GH-5964
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 13cfd57)

Co-authored-by: Joongi Kim <me@daybreaker.info>
  • Loading branch information
miss-islington and achimnol committed Mar 3, 2018
1 parent a13b654 commit 0f7cf7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/asyncio-task.rst
Expand Up @@ -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.

Expand Down

0 comments on commit 0f7cf7e

Please sign in to comment.