waveless_runtime/
conn_executor.rs1#[derive(Clone)]
5pub struct ConnExecutor;
6
7impl<F> hyper::rt::Executor<F> for ConnExecutor
8where
9 F: Future + Send + 'static,
10 F::Output: Send + 'static,
11{
12 fn execute(&self, fut: F) {
13 tokio::task::spawn(fut);
14 }
15}