Trait anterofit::executor::Executor [] [src]

pub trait Executor: Send + Clone + 'static {
    fn execute(&self, exec: Box<ExecBox>);
}

A trait describing a type which can execute tasks (in the background or otherwise).

It is up to the implementing type to decide how to handle panics.

Required Methods

Execute exec on this executor.

This may or may not block the current thread, but documenting this behavior is preferable.

Implementors