proc-heim 0.1.5

Library for running and managing short-lived and long-lived processes using asynchronous API
Documentation
1
2
3
4
5
6
7
8
use proc_heim::manager::{ProcessManager, ProcessManagerHandle};
use tempfile::{tempdir, TempDir};

pub fn create_process_manager() -> (TempDir, ProcessManagerHandle) {
    let working_dir = tempdir().unwrap();
    let handle = ProcessManager::spawn(working_dir.path().into()).unwrap();
    (working_dir, handle)
}