use super::{Executor, Runtime, Timer};
#[derive(Clone, Copy, Debug, Default)]
pub struct Smol;
impl Smol {
#[must_use]
pub fn runtime() -> Runtime {
Runtime::builder()
.executor(Executor::new(|future| {
smol::spawn(future).detach();
}))
.timer(Timer::new(|deadline| async move {
let _ = async_io::Timer::at(deadline).await;
}))
.build()
}
}