quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.85k stars 394 forks source link

Define `Connection::closed` helper to await connection termination #1396

Closed Ralith closed 2 years ago

Ralith commented 2 years ago

This has come up several times, most recently in https://github.com/quinn-rs/quinn/issues/1395. While equivalent behavior is already possible by waiting for e.g. IncomingUniStreams to yield Err or None, this is substantially more discoverable.

djc commented 2 years ago

There are still some warnings noted by Actions on the unused ptr import, maybe clean those up too?