mirror of https://github.com/python/cpython.git
gh-84747: Add `async for` comment for StreamReader (GH-98633)
(cherry picked from commit 4196ee5c8b
)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
This commit is contained in:
parent
83c8df29dd
commit
8777d059bb
|
@ -183,7 +183,8 @@ StreamReader
|
|||
.. class:: StreamReader
|
||||
|
||||
Represents a reader object that provides APIs to read data
|
||||
from the IO stream.
|
||||
from the IO stream. As an :term:`asynchronous iterable`, the
|
||||
object supports the :keyword:`async for` statement.
|
||||
|
||||
It is not recommended to instantiate *StreamReader* objects
|
||||
directly; use :func:`open_connection` and :func:`start_server`
|
||||
|
|
Loading…
Reference in New Issue