use crate::catch_unwind::CatchUnwind; use std::future::Future; use std::panic::UnwindSafe; pub(crate) trait ProcFutureExt: Future { fn catch_unwind(self) -> CatchUnwind where Self: Sized + UnwindSafe, { CatchUnwind::new(self) } } impl ProcFutureExt for T where T: Future {}