Function lunatic::process::spawn[][src]

pub fn spawn<T: Serialize + DeserializeOwned>(
    function: fn(_: Mailbox<T>)
) -> Result<Process<T>, LunaticError>
Expand description

Spawns a new process from a function.

  • function is the starting point of the new process. The new process doesn’t share memory with its parent, because of this the function can’t capture anything from parents.