add streaming body to requests and responses #3

Merged
lx merged 64 commits from stream-body into main 2022-09-13 10:56:54 +00:00
Showing only changes of commit fed0542313 - Show all commits

View file

@ -35,7 +35,9 @@ impl Sender {
impl Drop for Sender {
fn drop(&mut self) {
if let Some(inner) = self.inner.take() {
let _ = inner.blocking_send(Err(255));
tokio::spawn(async move {
let _ = inner.send(Err(255)).await;
});
}
}
}