Trait apalis::prelude::Executor

source ·
pub trait Executor {
    // Required method
    fn spawn(&self, future: impl Future<Output = ()> + Send + 'static);
}
Expand description

An Executor that is used to spawn futures

Required Methods§

source

fn spawn(&self, future: impl Future<Output = ()> + Send + 'static)

Spawns a new asynchronous task

Object Safety§

This trait is not object safe.

Implementors§