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