pep-0492: Rename ensure_task() -> ensure_future()
This commit is contained in:
parent
7cf393e6a7
commit
6d2ded2b90
|
@ -828,7 +828,7 @@ The required changes are mainly:
|
|||
|
||||
2. Add ``__await__ = __iter__`` line to ``asyncio.Future`` class.
|
||||
|
||||
3. Add ``ensure_task()`` as an alias for ``async()`` function.
|
||||
3. Add ``ensure_future()`` as an alias for ``async()`` function.
|
||||
Deprecate ``async()`` function.
|
||||
|
||||
|
||||
|
@ -848,7 +848,7 @@ async/await in CPython code base
|
|||
There is no use of ``await`` names in CPython.
|
||||
|
||||
``async`` is mostly used by asyncio. We are addressing this by
|
||||
renaming ``async()`` function to ``ensure_task()`` (see `asyncio`_
|
||||
renaming ``async()`` function to ``ensure_future()`` (see `asyncio`_
|
||||
section for details.)
|
||||
|
||||
Another use of ``async`` keyword is in ``Lib/xml/dom/xmlbuilder.py``,
|
||||
|
|
Loading…
Reference in New Issue