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
fn execute(&self, exec: Box<ExecBox>)
Execute exec
on this executor.
This may or may not block the current thread, but documenting this behavior is preferable.
Implementors
impl Executor for Pooled
impl Executor for SingleThread
impl Executor for Blocking