interprocess 2.4.0

Interprocess communication toolkit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod side_a;
mod side_b;

use std::{io, sync::mpsc, thread};

fn main() -> io::Result<()> {
    let (htx, hrx) = mpsc::sync_channel(1);
    let jh = thread::spawn(move || side_a::emain(htx));
    let handle = hrx.recv().unwrap();

    side_b::emain(handle)?;
    jh.join().unwrap()
}