Expand description
Long running processes.
ⓘ
async fn run() -> steward::Result<()> {
let server_process = process! {
tag: "server",
cmd: cmd! {
exe: "cargo watch",
env: Env::empty(),
pwd: Loc::root(),
msg: "Running a reloadable server",
},
};
let client_process = process! {
tag: "client",
cmd: cmd! {
exe: "rescript build -w",
env: Env::empty(),
pwd: Loc::root(),
msg: "Watching a client",
},
};
ProcessPool::run(vec![server_process, client_process]).await
}
Structs
- Long running process. Can be constructed via
Process::new
or convenienceprocess!
macro. - Struct to run a pool of long-running processes.
- Wrapper around a running child process.
Enums
- Entry of a
ProcessPool
when some of the processes depend on something. It is used as an input to theProcessPool::run_with_deps
method. Seedep
module documentation.