diff --git a/examples/main.rs b/examples/main.rs new file mode 100644 index 0000000..d2c7607 --- /dev/null +++ b/examples/main.rs @@ -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(); +}