iced-yoda/futures/src/backend/null.rs
2025-04-02 11:01:11 +02:00

18 lines
410 B
Rust

//! A backend that does nothing!
use crate::MaybeSend;
/// An executor that drops all the futures, instead of spawning them.
#[derive(Debug)]
pub struct Executor;
impl crate::Executor for Executor {
fn new() -> Result<Self, futures::io::Error> {
Ok(Self)
}
fn spawn(&self, _future: impl Future<Output = ()> + MaybeSend + 'static) {}
}
pub mod time {
//! Listen and react to time.
}