compio-runtime 0.2.0-beta.2

high-level runtime for compio
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use compio_runtime::event::Event;

#[test]
fn event_handle() {
    compio_runtime::Runtime::new().unwrap().block_on(async {
        let event = Event::new().unwrap();
        let handle = event.handle().unwrap();
        std::thread::spawn(move || {
            handle.notify().unwrap();
        });
        event.wait().await.unwrap();
    })
}