From 3ca68e77b85329da2012cca57e4b52b4ea349ad2 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Sun, 2 Nov 2014 12:31:47 -0500 Subject: [PATCH 1/2] Fix English phrasing. --- Doc/library/asyncio-protocol.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst index 3f9a2c7e075..d72dfffd65c 100644 --- a/Doc/library/asyncio-protocol.rst +++ b/Doc/library/asyncio-protocol.rst @@ -439,7 +439,7 @@ Coroutines and protocols ------------------------ Coroutines can be scheduled in a protocol method using :func:`async`, but there -is not guarantee on the execution order. Protocols are not aware of coroutines +is no guarantee made about the execution order. Protocols are not aware of coroutines created in protocol methods and so will not wait for them. To have a reliable execution order, use :ref:`stream objects ` in a From 64f10d4f5e01ab119baa4d0a10403cec444810ce Mon Sep 17 00:00:00 2001 From: R David Murray Date: Sun, 2 Nov 2014 12:32:26 -0500 Subject: [PATCH 2/2] Reflow paragraph. --- Doc/library/asyncio-protocol.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst index d72dfffd65c..60776d1e9e3 100644 --- a/Doc/library/asyncio-protocol.rst +++ b/Doc/library/asyncio-protocol.rst @@ -439,8 +439,8 @@ Coroutines and protocols ------------------------ Coroutines can be scheduled in a protocol method using :func:`async`, but there -is no guarantee made about the execution order. Protocols are not aware of coroutines -created in protocol methods and so will not wait for them. +is no guarantee made about the execution order. Protocols are not aware of +coroutines created in protocol methods and so will not wait for them. To have a reliable execution order, use :ref:`stream objects ` in a coroutine with ``yield from``. For example, the :meth:`StreamWriter.drain`