Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 980dd84

Browse files
committed
asyncio doc: more explicit doc for async()
The function schedules the execution of coroutines, it's not just a wrapper for something.
1 parent 33f6abe commit 980dd84

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/asyncio-task.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ Task functions
478478

479479
.. function:: async(coro_or_future, \*, loop=None)
480480

481-
Wrap a :ref:`coroutine object <coroutine>` in a future.
481+
Schedule the execution of a :ref:`coroutine object <coroutine>`: wrap it in
482+
a future. Return a :class:`Task` object.
482483

483484
If the argument is a :class:`Future`, it is returned directly.
484485

0 commit comments

Comments
 (0)