readuntil
Readuntil is a coroutine method of asyncio.StreamReader in Python’s standard library. It reads data from an asynchronous stream until the specified separator bytes are encountered, returning the accumulated data including the separator.
If the end of the stream is reached before the separator is found, readuntil raises asyncio.IncompleteReadError,
Usage typically appears in async protocols where messages are delimited by a known sequence, such as a
Relation to other methods: readuntil differs from readexactly in that it waits for a delimiter rather than
Limitations and considerations: care is needed to ensure the chosen delimiter reliably appears in the stream