From 77de684ed94a2ac15504c0033f4c8fe39693f3b9 Mon Sep 17 00:00:00 2001 From: Alex Bakon Date: Tue, 8 Apr 2025 07:38:04 -0400 Subject: [PATCH] runtime: mark `runtime::Handle` unwind-safe (#7230) --- tokio/src/runtime/handle.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs index 91f13d6c2..7ad5b7330 100644 --- a/tokio/src/runtime/handle.rs +++ b/tokio/src/runtime/handle.rs @@ -443,6 +443,10 @@ impl Handle { } } +impl std::panic::UnwindSafe for Handle {} + +impl std::panic::RefUnwindSafe for Handle {} + cfg_taskdump! { impl Handle { /// Captures a snapshot of the runtime's state.