pub mod lock;
pub mod runtime;
pub mod signal;
pub mod task;
pub mod timer;
pub use lock::*;
pub use runtime::*;
pub use signal::*;
pub use task::*;
pub use timer::sleep as blocking_sleep;
pub fn block_on<F>(future: F) -> Result<F::Output>
where
F: std::future::Future + Send + 'static,
F::Output: Send + 'static,
{
Runtime::new().block_on(future)
}
pub fn spawn<F>(future: F) -> runtime::JoinHandle<F::Output>
where
F: std::future::Future + Send + 'static,
F::Output: Send + 'static,
{
Runtime::new().spawn(future)
}