Skip to main content

spawn

Function spawn 

Source
pub async fn spawn(
    home: &Path,
    kind: &str,
    key: &str,
    payload: Value,
) -> Result<Job>
Expand description

Reserve an exclusive operation and detach its immutable executable. Returns after acknowledgement; a timeout preserves the reservation and never kills the child or silently executes in the caller. Repeated identical requests attach to the existing reservation rather than dispatching twice.