Skip to content

Commit

Permalink
Add example.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Nov 11, 2020
1 parent e253d0c commit a51fad8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/ip_watch.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use ip_watch::AddrSet;

fn main() {
futures_lite::future::block_on(async {
let mut set = AddrSet::new().await.unwrap();
loop {
println!("Got event {:?}", set.next().await);
}
});
}

0 comments on commit a51fad8

Please sign in to comment.