From 980dd84f92f689f810ebf10a15f221c8d396ce4e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 12 Oct 2014 21:36:17 +0200 Subject: asyncio doc: more explicit doc for async() The function schedules the execution of coroutines, it's not just a wrapper for something. --- Doc/library/asyncio-task.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 8c4d790..fa95ca9 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -478,7 +478,8 @@ Task functions .. function:: async(coro_or_future, \*, loop=None) - Wrap a :ref:`coroutine object ` in a future. + Schedule the execution of a :ref:`coroutine object `: wrap it in + a future. Return a :class:`Task` object. If the argument is a :class:`Future`, it is returned directly. -- cgit v0.12