mitosis 0.1.1

Crate providing the ability to spawn processes with custom closures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use mitosis;

use std::thread::sleep;
use std::time::Duration;

fn main() {
    mitosis::init();

    mitosis::spawn((1, 2), |(a, b)| {
        println!("{:?} {:?}", a, b);
    });

    sleep(Duration::from_secs(2));
}