mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
gh-84747: Add async for comment for StreamReader (#98633)
This commit is contained in:
parent
45644905ea
commit
4196ee5c8b
1 changed files with 2 additions and 1 deletions
|
|
@ -183,7 +183,8 @@ StreamReader
|
||||||
.. class:: StreamReader
|
.. class:: StreamReader
|
||||||
|
|
||||||
Represents a reader object that provides APIs to read data
|
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
|
It is not recommended to instantiate *StreamReader* objects
|
||||||
directly; use :func:`open_connection` and :func:`start_server`
|
directly; use :func:`open_connection` and :func:`start_server`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue