use crate::Executor;
#[derive(Debug, Clone, Copy)]
pub struct SmolGlobal;
impl Executor for SmolGlobal {
type Task<T: Send + 'static> = crate::async_task::AsyncTask<T>;
fn spawn<Fut>(&self, fut: Fut) -> Self::Task<Fut::Output>
where
Fut: Future<Output: Send> + Send + 'static,
{
smol::spawn(fut).into()
}
}