mirror of https://github.com/python/cpython
asyncio doc: more explicit doc for async()
The function schedules the execution of coroutines, it's not just a wrapper for something.
This commit is contained in:
parent
33f6abe4ae
commit
980dd84f92
|
@ -478,7 +478,8 @@ Task functions
|
|||
|
||||
.. function:: async(coro_or_future, \*, loop=None)
|
||||
|
||||
Wrap a :ref:`coroutine object <coroutine>` in a future.
|
||||
Schedule the execution of a :ref:`coroutine object <coroutine>`: wrap it in
|
||||
a future. Return a :class:`Task` object.
|
||||
|
||||
If the argument is a :class:`Future`, it is returned directly.
|
||||
|
||||
|
|
Loading…
Reference in New Issue