pub fn blocking<F, T>(f: F) -> BlockingProc<F, T>
where
    F: FnOnce() -> anyhow::Result<T> + Send,
    T: Send,
{
    BlockingProc(Some(f))
}
/// Executes a function to completion using a blocking call
Executes a function to completion using a blocking call
Executes a function to completion using a blocking call
pub fn blocking<F, T>(f: F) -> BlockingProc<F, T>
where
    F: FnOnce() -> anyhow::Result<T> + Send,
    T: Send,
{
    BlockingProc(Some(f))
}
pub fn blocking < F , T > ( f : F ) -> BlockingProc < F , T > where F : FnOnce ( ) -> anyhow :: Result < T > + Send , T : Send , { BlockingProc ( Some ( f ) ) }
Executes a function to completion using a blocking call
Executes a function to completion using a blocking call
f
F