Skip to main content

waveless_runtime/
conn_executor.rs

1// Waveless
2// Copyright (C) 2026 Oscar Alvarez Gonzalez
3
4#[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}