mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 01:42:55 +00:00
Use futures::future::try_join_all
This commit is contained in:
@@ -154,9 +154,7 @@ struct JoinOnDrop(Vec<tokio::task::JoinHandle<()>>);
|
||||
impl JoinOnDrop {
|
||||
/// Checks all the futures for panics.
|
||||
pub async fn join_all(self) {
|
||||
for handle in self.0 {
|
||||
handle.await.unwrap()
|
||||
}
|
||||
futures::future::try_join_all(self.0).await.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user