docs/library/uasyncio.rst: Document stream readexactly() method.

Signed-off-by: Damien George <damien@micropython.org>
pull/7558/head
Damien George 2021-07-22 17:13:10 +10:00
rodzic a5ac3d5645
commit 7f69246895
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -248,6 +248,14 @@ TCP stream connections
This is a coroutine, and a MicroPython extension.
.. method:: Stream.readexactly(n)
Read exactly *n* bytes and return them as a bytes object.
Raises an ``EOFError`` exception if the stream ends before reading *n* bytes.
This is a coroutine.
.. method:: Stream.readline()
Read a line and return it.