1use hyper::rt::Executor;
2use std::future::Future;
3
4#[derive(Clone)]
5pub struct AsynkExecutor;
6
7impl<Fut> Executor<Fut> for AsynkExecutor
8where
9 Fut: Future + Send + 'static,
10 Fut::Output: Send + 'static,
11{
12 fn execute(&self, fut: Fut) {
13 asynk::spawn(fut);
14 }
15}