Function hadean::hadean::spawn[][src]

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

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

Examples

let pid = hadean::spawn(program).await.unwrap();