diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-25 22:22:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-25 22:22:28 (GMT) |
commit | 52bb949fd3658957fb8719fd83183b38d9fb621c (patch) | |
tree | a445a45fe33a5e30f25d3cbaa213519658b6d637 /Doc | |
parent | b261475a48d905f160bc1f499e90b995b0d0b6c0 (diff) | |
download | cpython-52bb949fd3658957fb8719fd83183b38d9fb621c.zip cpython-52bb949fd3658957fb8719fd83183b38d9fb621c.tar.gz cpython-52bb949fd3658957fb8719fd83183b38d9fb621c.tar.bz2 |
asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-protocol.rst | 12 |
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. |