use crate::Executor; use futures::Future; /// An executor that drops all the futures, instead of spawning them. #[derive(Debug)] pub struct Null; impl Executor for Null { fn new() -> Result { Ok(Self) } fn spawn(&self, _future: impl Future + Send + 'static) {} }