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

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

Spawn a new process which starts at the target function.

Examples

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