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 fb0b55d commit 8d28016Copy full SHA for 8d28016
common/task/src/runtime_registry.rs
@@ -39,7 +39,9 @@ impl RuntimeRegistry {
39
.write()
40
.map_err(|_| RegistryAccessError::Poisoned)?;
41
Ok(guard
42
- .get_or_insert_with(|| Arc::new(ShutdownManager::new_without_signals()))
+ .get_or_insert_with(|| {
43
+ Arc::new(ShutdownManager::new_without_signals().with_cancel_on_panic())
44
+ })
45
.clone())
46
}
47
0 commit comments