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 82afe01 commit 4776548Copy full SHA for 4776548
core/src/co_pool/mod.rs
@@ -60,8 +60,9 @@ impl Drop for CoroutinePool<'_> {
60
if std::thread::panicking() {
61
return;
62
}
63
- self.stop(Duration::from_secs(30))
64
- .unwrap_or_else(|_| panic!("Failed to stop coroutine pool {} !", self.name()));
+ self.stop(Duration::from_secs(30)).unwrap_or_else(|e| {
+ panic!("Failed to stop coroutine pool {} due to {e} !", self.name())
65
+ });
66
assert_eq!(
67
PoolState::Stopped,
68
self.state(),
0 commit comments