recv()
Receive one value.
Usage
recv(timeout=None)Parameters
timeout: float | None = None- Seconds to wait; None waits indefinitely.
Returns
The value, or theTIMEOUT/CLOSED/PEER_GONE- sentinel.
Raises
ConcurrentUseError-
Another verb is in flight on this side from a second thread, or a
recv_async()consumer is armed and this is not its event-loop thread: a side is confined to one thread and one consumer form at a time.