mitosis 0.1.0

(WIP) Crate providing the ability to spawn processes with custom closures
Documentation

mitosis

Build Status Current Version License: MIT/Apache-2.0

WIP

This crate provides mitosis::spawn(), which is similar to thread::spawn() but will spawn a new process instead.


fn main() {
    // Needs to be near the beginning of your program
    mitosis::init();

    // some code
    let some_data = 5
    mitosis::spawn(some_data, |data| {
        println!("hello from another process, your data is {}", 5);
    });
}