summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-25 22:23:23 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-25 22:23:23 (GMT)
commit54c69c2fe3a6d9489407e751ea61c6c2dee1e9e5 (patch)
tree89dd71b35ff5642e26cefe25c76ab9f17b1f25dc /Doc
parent83b9ea4942692efcb8d3eeab200c62b6a98208fb (diff)
parent52bb949fd3658957fb8719fd83183b38d9fb621c (diff)
downloadcpython-54c69c2fe3a6d9489407e751ea61c6c2dee1e9e5.zip
cpython-54c69c2fe3a6d9489407e751ea61c6c2dee1e9e5.tar.gz
cpython-54c69c2fe3a6d9489407e751ea61c6c2dee1e9e5.tar.bz2
(Merge 3.4) asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits()
method
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-protocol.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst
index 952ab69..92b055a 100644
--- a/Doc/library/asyncio-protocol.rst
+++ b/Doc/library/asyncio-protocol.rst
@@ -121,6 +121,16 @@ WriteTransport
Return the current size of the output buffer used by the transport.
+ .. method:: get_write_buffer_limits()
+
+ Get the *high*- and *low*-water limits for write flow control. Return a
+ tuple ``(low, high)`` where *low* and *high* are positive number of
+ bytes.
+
+ Use :meth:`set_write_buffer_limits` to set the limits.
+
+ .. versionadded:: 3.4.2
+
.. method:: set_write_buffer_limits(high=None, low=None)
Set the *high*- and *low*-water limits for write flow control.
@@ -141,6 +151,8 @@ WriteTransport
reduces opportunities for doing I/O and computation
concurrently.
+ Use :meth:`get_write_buffer_limits` to get the limits.
+
.. method:: write(data)
Write some *data* bytes to the transport.