2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-21 19:01:25 +00:00

Remove unlooping loop

This commit is contained in:
asonix 2024-12-09 19:38:06 -06:00
parent 5e95c76a0f
commit ef60ed9581

View file

@ -54,14 +54,12 @@ where
pub async fn make_progress_with<F: std::future::Future>(&mut self, f: F) -> F::Output {
let mut f = std::pin::pin!(f);
loop {
tokio::select! {
_ = self.make_progress() => {
return f.await;
}
output = &mut f => {
return output;
}
tokio::select! {
_ = self.make_progress() => {
return f.await;
}
output = &mut f => {
return output;
}
}
}