Init Event Module #4

Merged
muellerr merged 16 commits from events into main 2022-06-11 12:36:40 +02:00
Showing only changes of commit 30bf2ca667 - Show all commits

View File

@ -25,15 +25,9 @@ fn basic_event_test() {
let mut event_cntr = 0;
while event_cntr < 2 {
match event_receiver.recv() {
Ok(event) => {
println!("Received event {:?}", event);
event_cntr += 1;
}
Err(_) => {
()
// println!("Received error {:?}", error);
}
if let Ok(event) = event_receiver.recv() {
println!("Received event {:?}", event);
event_cntr += 1;
}
}
t0.join().unwrap();