Function lunatic::process::spawn_link[][src]

pub fn spawn_link<T, P, M>(
    mailbox: M,
    function: fn(_: Mailbox<T>)
) -> Result<(Process<T>, Tag, LinkMailbox<P>), LunaticError> where
    T: Serialize + DeserializeOwned,
    P: Serialize + DeserializeOwned,
    M: TransformMailbox<P>, 
Expand description

Spawns a new process from a function and links it to the parent.

  • 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.