Trait asio::Executor
[−]
[src]
pub trait Executor { fn post<F: FnOnce()>(&self, f: F); }
An executor is to function execution as an allocator is to allocation
Required Methods
fn post<F: FnOnce()>(&self, f: F)
submit the function for later execution; never block the calling thread to wait for the function to complete
Implementors
impl Executor for LoopScheduler
impl Executor for IoService