Skip to content

Commit

Permalink
docs/library/uasyncio.rst: Document stream readexactly() method.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jul 22, 2021
1 parent a5ac3d5 commit 7f69246
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/library/uasyncio.rst
Expand Up @@ -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.
Expand Down

0 comments on commit 7f69246

Please sign in to comment.