if-watch 3.2.2

crossplatform asynchronous network watcher
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use futures::StreamExt;
use if_watch::smol::IfWatcher;

fn main() {
    env_logger::init();
    smol::block_on(async {
        let mut set = IfWatcher::new().unwrap();
        loop {
            let event = set.select_next_some().await;
            println!("Got event {:?}", event);
        }
    });
}