mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
sync: make CancellationToken UnwindSafe (#5438)
This commit is contained in:
@@ -55,6 +55,9 @@ pub struct CancellationToken {
|
||||
inner: Arc<tree_node::TreeNode>,
|
||||
}
|
||||
|
||||
impl std::panic::UnwindSafe for CancellationToken {}
|
||||
impl std::panic::RefUnwindSafe for CancellationToken {}
|
||||
|
||||
pin_project! {
|
||||
/// A Future that is resolved once the corresponding [`CancellationToken`]
|
||||
/// is cancelled.
|
||||
|
||||
Reference in New Issue
Block a user