1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! ### `sea-streamer-runtime`: Async runtime abstraction
//!
//! This crate provides a small set of functions aligning the type signatures between `async-std` and `tokio`,
//! so that you can build applications generic to both runtimes.

#[cfg(all(feature = "runtime-async-std", feature = "runtime-tokio"))]
compile_error!("'runtime-async-std' and 'runtime-tokio' cannot be enabled at the same time");

#[cfg(feature = "file")]
pub mod file;
mod mutex;
mod sleep;
mod task;
mod timeout;

pub use mutex::*;
pub use sleep::*;
pub use task::*;
pub use timeout::*;