Function hadean::hadean::spawn_in_locus[][src]

pub fn spawn_in_locus(
    locus: &str,
    target: impl Into<Program>
) -> Pin<Box<dyn Future<Output = Result<Pid, HadeanError>> + Send>>
Expand description

Spawn a new process in a particular locus whose entry point is defined by target.

Panics

This function will panic if locus is not configured in your locality config.

Examples

let pid = hadean::spawn_in_locus("my_locus", program).await.unwrap();