Channel.__aiter__()

Iterate over received payloads until CLOSED or PEER_GONE —

Usage

Source

Channel.__aiter__()

the async form of the sync iterator.

Yields payloads as they arrive, awaiting each through recv_async(). Between iterations nothing is armed; the next iteration re-arms and the arm’s synchronous drain picks up whatever arrived meanwhile (loss-free).