From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 21 Aug 2019 17:20:49 +0000 (-0700) Subject: Update asyncio.ensure_future() documentation (GH-15347) (GH-15364) X-Git-Tag: v3.8.0b4~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=349d897e0f54f2991ffe518c8ac3ef55c30c293b;p=python Update asyncio.ensure_future() documentation (GH-15347) (GH-15364) Added back mention that ensure_future actually scheduled obj. This documentation just mentions what ensure_future returns, so I did not realize that ensure_future also schedules obj. (cherry picked from commit 092911d5c0d8f6db8a0cb02fecd73dbb650f9e2e) Co-authored-by: Roger Iyengar --- diff --git a/Doc/library/asyncio-future.rst b/Doc/library/asyncio-future.rst index 6e6e0137c1..c069471b51 100644 --- a/Doc/library/asyncio-future.rst +++ b/Doc/library/asyncio-future.rst @@ -35,7 +35,9 @@ Future Functions is used for the test.) * a :class:`Task` object wrapping *obj*, if *obj* is a - coroutine (:func:`iscoroutine` is used for the test.) + coroutine (:func:`iscoroutine` is used for the test); + in this case the coroutine will be scheduled by + ``ensure_future()``. * a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:func:`inspect.isawaitable` is used for the test.)