minions 0.2.2

Experimental actor library, under constant development.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#[test]
fn event_test() {
  use std::thread;

  let mut e1 = super::event::new();
  let mut e2 = e1.clone();

  let t = thread::spawn(move|| {
    assert_eq!(e1.wait(0, 200_000), 1);
  });

  e2.notify();
  t.join().unwrap();
}