MCPcopy
hub / github.com/benoitc/gunicorn / readexactly

Method readexactly

benchmarks/dirty_streaming.py:94–99  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

92 self._pos = 0
93
94 async def readexactly(self, n):
95 if self._pos + n > len(self._data):
96 raise asyncio.IncompleteReadError(self._data[self._pos:], n)
97 result = self._data[self._pos:self._pos + n]
98 self._pos += n
99 return result
100
101
102class MockLog:

Callers 2

read_message_asyncMethod · 0.45
read_message_asyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected