chore: document intentional await-holding cases

This commit is contained in:
Michael Bolin
2026-04-17 16:48:19 -07:00
parent f7323cfe6c
commit 23e6823b82
22 changed files with 229 additions and 0 deletions
@@ -229,6 +229,10 @@ impl ResponsesWebsocketConnection {
let current_span = Span::current();
tokio::spawn(
#[expect(
clippy::await_holding_invalid_type,
reason = "the guard serializes exclusive use of the websocket stream for the lifetime of the response stream"
)]
async move {
if let Some(model) = server_model {
let _ = tx_event.send(Ok(ResponseEvent::ServerModel(model))).await;