pub fn spawn(command: process::Command) -> Command {
        let mutex = Mutex::new(command);
        Rc::new(move |_| {
            let mut command = mutex.lock().unwrap();
            info!("Spawning: {:?}", *command);
            command
                .spawn()
                .with_context(|_| format!("Could not spawn command: {:?}", *command))?;
            Ok(())
        })
    }
/// Spawns the specified command.
///
/// The returned `Command` will spawn the `Command` each time it is called.
Spawns the specified command.
The returned `Command` will spawn the `Command` each time it is called.
Spawns the specified command . The returned ` Command ` will spawn the ` Command ` each time it is called .
pub fn spawn(command: process::Command) -> Command {
        let mutex = Mutex::new(command);
        Rc::new(move |_| {
            let mut command = mutex.lock().unwrap();
            info!("Spawning: {:?}", *command);
            command
                .spawn()
                .with_context(|_| format!("Could not spawn command: {:?}", *command))?;
            Ok(())
        })
    }
pub fn spawn ( command : process :: Command ) -> Command { let mutex = Mutex :: new ( command ) ; Rc :: new ( move | _ | { let mut command = mutex . lock ( ) . unwrap ( ) ; info ! ( " " command ) ; command . spawn ( ) . with_context ( | _ | format ! ( " " command ) ) ? ; Ok ( ( ) ) } ) }
Spawns the specified command.
Spawns the specified command .
command
process::Command