lightproc 0.3.4

Lightweight process abstraction for Rust
Documentation
use crate::catch_unwind::CatchUnwind;
use std::future::Future;
use std::panic::UnwindSafe;

pub(crate) trait ProcFutureExt: Future {
    fn catch_unwind(self) -> CatchUnwind<Self>
    where
        Self: Sized + UnwindSafe,
    {
        CatchUnwind::new(self)
    }
}

impl<T: ?Sized> ProcFutureExt for T where T: Future {}