PyDocs

Nav

Networking and Interprocess Communication

StreamReader.readexactly

asyncio

async method of StreamReader (source) not WASI
  • StreamReader.readexactly(n)
Read exactly `n` bytes.

Raise an IncompleteReadError if EOF is reached before `n` bytes can be
read. The IncompleteReadError.partial attribute of the exception will
contain the partial read bytes.

if n is zero, return empty bytes object.

Returned value is not limited with limit, configured at stream
creation.

If stream was paused, this function will automatically resume it if
needed.
0 Examples
No examples for asyncio/StreamReader.readexactly.
See Also
No see-alsos for asyncio/StreamReader.readexactly
0 Notes
No notes for StreamReader.readexactly