mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
Update asyncio.ensure_future() documentation (GH-15347)
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.
This commit is contained in:
parent
20f59fe1f7
commit
092911d5c0
1 changed files with 3 additions and 1 deletions
|
|
@ -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.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue