Agent Connection Context
Bidirectional channel pair for a single agent-to-proxy connection.
Holds two coroutine channels: one for inbound scrape request actions (bounded by backlogCapacity) and one for outbound scrape results (unbounded). Manages the connection's disconnected state and provides a close method that drains pending requests and closes both channels so waiting coroutines are notified.
Parameters
backlog Capacity
maximum number of buffered scrape request actions