Skip to content

miniproto.connection.sender.SenderState

SenderState(pending_count: int, connected: bool, receive_task_done: bool) -> None

Snapshot of sender liveness and pending RPC capacity.

Parameters:

  • pending_count (int) – Reserved request slots, including requests awaiting send.
  • connected (bool) – Whether transport and receive-loop tasks are both live.
  • receive_task_done (bool) – Whether no receive loop exists or the current one has finished.