MCPcopy Index your code
hub / github.com/python/cpython / _set_write_buffer_limits

Method _set_write_buffer_limits

Lib/asyncio/transports.py:316–330  ·  view source on GitHub ↗
(self, high=None, low=None)

Source from the content-addressed store, hash-verified

314 return (self._low_water, self._high_water)
315
316 def _set_write_buffer_limits(self, high=None, low=None):
317 if high is None:
318 if low is None:
319 high = 64 * 1024
320 else:
321 high = 4 * low
322 if low is None:
323 low = high // 4
324
325 if not high >= low >= 0:
326 raise ValueError(
327 f'high ({high!r}) must be >= low ({low!r}) must be >= 0')
328
329 self._high_water = high
330 self._low_water = low
331
332 def set_write_buffer_limits(self, high=None, low=None):
333 self._set_write_buffer_limits(high=high, low=low)

Callers 2

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected