Function mz_ore::panic::catch_unwind
source · pub fn catch_unwind<F, R>(f: F) -> Result<R, Box<dyn Any + Send + 'static>>where
F: FnOnce() -> R + UnwindSafe,
Expand description
Like std::panic::catch_unwind
, but can unwind panics even if
set_abort_on_panic
has been called.