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:
Victor Stinner 2014-10-12 21:36:17 +02:00
parent 33f6abe4ae
commit 980dd84f92
1 changed files with 2 additions and 1 deletions

View File

@ -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.