Commit f6152d4b authored by Victor Stinner's avatar Victor Stinner

asyncio doc: more explicit doc for async()

The function schedules the execution of coroutines, it's not just a wrapper for
something.
parent 640c2297
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment