Skip to main content

spawn_quic_reader

Function spawn_quic_reader 

Source
fn spawn_quic_reader(
    task_group: &TaskGroup,
    reader: FramedReader<PeerNetMsgCodec>,
    recv_queue: Arc<AsyncQueue<ProtocolEvent>>,
    stop_reason_tx: Sender<Result<()>>,
)
Expand description

Spawn a per-stream QUIC reader task. The stream is already keyed by protocol id, so messages go straight into recv_queue. Signals the peer via stop_reason_tx on Shutdown / error, like the TCP reader.