iced/futures/src/executor/null.rs
2020-01-20 04:47:36 +01:00

13 lines
239 B
Rust

use crate::Executor;
use futures::Future;
pub struct Null;
impl Executor for Null {
fn new() -> Result<Self, futures::io::Error> {
Ok(Self)
}
fn spawn(&self, _future: impl Future<Output = ()> + Send + 'static) {}
}