mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method
This commit is contained in:
parent
b261475a48
commit
52bb949fd3
3 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue