We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa2e36 commit e3e6537Copy full SHA for e3e6537
crates/cli/src/lifecycle.rs
@@ -168,12 +168,14 @@ impl LifecycleManager {
168
.expect("Failed to read monotonic clock")
169
]);
170
171
- // XXX: if the handler takes a long time, it will block the
+ // XXX: if one handler takes a long time, it will block the
172
// rest of the shutdown process, which is not ideal. We
173
// should probably have a timeout here
174
- for handler in &self.reload_handlers {
175
- handler().await;
176
- }
+ futures_util::future::join_all(
+ self.reload_handlers
+ .iter()
177
+ .map(|handler| handler())
178
+ ).await;
179
180
notify(&[sd_notify::NotifyState::Ready]);
181
0 commit comments