Skip to content

Commit

Permalink
add examples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
PanGan21 committed May 10, 2024
1 parent c71f690 commit 8292b0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use wait_for_rs::WaitService;

fn main() {
let urls = ["google.com:443".to_string(), "github.com:443".to_string()].to_vec();
let timeout = 10;

let wait_service = WaitService::new(urls, timeout).unwrap();
wait_service.wait_for_services().unwrap();
}

0 comments on commit 8292b0c

Please sign in to comment.