Streams (coroutine based API)

Streams (coroutine based API)

1. Stream functions

Note

The top-level functions in this module are meant as convenience wrappers only; there’s really nothing special there, and if they don’t do exactly what you want, feel free to copy their code.

coroutine asyncio.open_connection(host=None, port=None, *, loop=None, limit=None, **kwds)

A wrapper for create_connection() returning a (reader, writer) pair.

The reader returned is a StreamReader登录查看完整内容