summaryrefslogtreecommitdiffstats
path: root/futures/src/executor/null.rs
blob: 722073bb0065fbce4bf092230b1b247359971339 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) {}
}