Struct syncbox::ScheduledThreadPool
[−]
[src]
pub struct ScheduledThreadPool { /* fields omitted */ }
A thread pool that can schedule tasks to run after a given delay, or to execute periodically. Delayed tasks do not run before their associated delays, but besides that, there are no real-time guarantees about exactly when the task will run.
Methods
impl ScheduledThreadPool
[src]
fn fixed_size(size: u32) -> ScheduledThreadPool
fn single_thread() -> ScheduledThreadPool
fn schedule_ms<T: Task + 'static>(&self, delay: u32, task: T)
Trait Implementations
impl<T: Task + 'static> Run<T> for ScheduledThreadPool
[src]
fn run(&self, task: T)
Runs the task on the underlying executor.
impl Clone for ScheduledThreadPool
[src]
fn clone(&self) -> ScheduledThreadPool
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more