asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method

This commit is contained in:
Victor Stinner 2014-08-26 00:22:28 +02:00
parent b261475a48
commit 52bb949fd3
3 changed files with 17 additions and 0 deletions

View file

@ -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.