sync: make CancellationToken UnwindSafe (#5438)

This commit is contained in:
Alice Ryhl
2023-02-09 13:07:52 +01:00
committed by GitHub
parent d6dbefcdc0
commit 8b44077ebc
@@ -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.