summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-stream.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-10 23:11:13 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-10 23:11:13 (GMT)
commit337e03ff7855ddcc166e43c4d5f2a282062e0e97 (patch)
tree3236b925fb2e5289053f7519e3036bb818a9e1ae /Doc/library/asyncio-stream.rst
parent6d201685e490138610e8e6fc321bbca6589c3cc2 (diff)
downloadcpython-337e03ff7855ddcc166e43c4d5f2a282062e0e97.zip
cpython-337e03ff7855ddcc166e43c4d5f2a282062e0e97.tar.gz
cpython-337e03ff7855ddcc166e43c4d5f2a282062e0e97.tar.bz2
Issue #22112, asyncio doc: replace loop.create_task(coro) with
asyncio.async(coro), mention that asyncio.async() can be used to scheduler a coroutine, and make it clear that create_task() is only available in Python 3.4.2 and later.
Diffstat (limited to 'Doc/library/asyncio-stream.rst')
-rw-r--r--Doc/library/asyncio-stream.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst
index 81bd7f0..11d13c8 100644
--- a/Doc/library/asyncio-stream.rst
+++ b/Doc/library/asyncio-stream.rst
@@ -43,7 +43,7 @@ Stream functions
:class:`StreamWriter` object. The *client_connected_cb* parameter can
either be a plain callback function or a :ref:`coroutine function
<coroutine>`; if it is a coroutine function, it will be automatically
- wrapped in a future using the :meth:`BaseEventLoop.create_task` method.
+ converted into a :class:`Task`.
The rest of the arguments are all the usual arguments to
:meth:`~BaseEventLoop.create_server()` except *protocol_factory*; most