lunatic 0.14.1

Helper library for building Rust applications that run on lunatic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use lunatic::{spawn_link, Mailbox};

#[lunatic::main]
fn main(_: Mailbox<()>) {
    let child = spawn_link!(@task || {
        println!("Hello world from a process!");
    });
    // Wait for child to finish
    let _ = child.result();

    let child = spawn_link!(@task || {
        println!("Hello world from a 2nd process!");
    });
    // Wait for child to finish
    let _ = child.result();
}