online/
lib.rs

1//! ```rust
2//! use online::check;
3//!
4//! println!("Online? {}", check(None).is_ok());
5//! println!("Online (timeout)? {}", check(Some(5)).is_ok());
6//! ```
7
8#[cfg(feature = "sync-runtime")]
9mod sync;
10#[cfg(feature = "sync-runtime")]
11pub use sync::check;
12
13#[cfg(feature = "tokio-runtime")]
14pub mod tokio;