use std::panic::{AssertUnwindSafe, catch_unwind};
use arty_executor::discard_task_panic_payload;
pub(crate) fn discard_panicking_drop<T>(value: T) {
if let Err(panic) = catch_unwind(AssertUnwindSafe(|| drop(value))) {
discard_task_panic_payload(panic);
}
}