pub fn init() {
    if env::args().len() != 1 {
        return;
    }
    if let Ok(token) = std::env::var(ENV_NAME) {
        bootstrap_ipc(token);
    }
    // Clear environment variable so processes spawned from the `spawn` closure can
    // themselves be using `mitosis`
    std::env::remove_var(ENV_NAME);
}
/// Initialize mitosis
///
/// This MUST be called near the top of your main(), before
/// you do any environment variable processing. Any code found before this will also
/// be executed for each spawned child process.
///
/// # Safety
/// It is not unsafe to omit this function, however `mitosis::spawn`
/// may lead to unexpected behavior.
Initialize mitosis
This MUST be called near the top of your main(), before
you do any environment variable processing. Any code found before this will also
be executed for each spawned child process.
Initialize mitosis This MUST be called near the top of your main () before you do any environment variable processing . Any code found before this will also be executed for each spawned child process .
pub fn init() {
    if env::args().len() != 1 {
        return;
    }
    if let Ok(token) = std::env::var(ENV_NAME) {
        bootstrap_ipc(token);
    }
    // Clear environment variable so processes spawned from the `spawn` closure can
    // themselves be using `mitosis`
    std::env::remove_var(ENV_NAME);
}
pub fn init ( ) { if env :: args ( ) . len ( ) != 1 { return ; } if let Ok ( token ) = std :: env :: var ( ENV_NAME ) { bootstrap_ipc ( token ) ; } // Clear environment variable so processes spawned from the `spawn` closure can // themselves be using `mitosis` std :: env :: remove_var ( ENV_NAME ) ; }
Initialize mitosis
This MUST be called near the top of your main(), before
you do any environment variable processing.
Initialize mitosis This MUST be called near the top of your main () before you do any environment variable processing .
safety
It is not unsafe to omit this function, however `mitosis::spawn`
may lead to unexpected behavior.
It is not unsafe to omit this function however ` mitosis :: spawn ` may lead to unexpected behavior .