pub fn run_pending(&mut self) {
        let now = Tp::now(&self.tz);
        for job in &mut self.jobs {
            if job.is_pending(&now) {
                job.execute(&now);
            }
        }
    }
/// Run all jobs that should run at this time.
///
/// This method blocks while jobs are being run. If a job takes a long time, it may prevent
/// other tasks from running as scheduled. If you have a long-running task, you might consider
/// having the job move the work into another thread so that it can return promptly.
/// ```rust
/// # use clokwerk::*;
/// # use clokwerk::Interval::*;
/// use std::thread;
/// use std::time::Duration;
/// # let mut scheduler = Scheduler::new();
/// loop {
///     scheduler.run_pending();
///     thread::sleep(Duration::from_millis(100));
///     # break
/// }
/// ```
Run all jobs that should run at this time.
This method blocks while jobs are being run. If a job takes a long time, it may prevent
other tasks from running as scheduled. If you have a long-running task, you might consider
having the job move the work into another thread so that it can return promptly.
Run all jobs that should run at this time . This method blocks while jobs are being run . If a job takes a long time it may prevent other tasks from running as scheduled . If you have a long - running task you might consider having the job move the work into another thread so that it can return promptly .
pub fn run_pending(&mut self) {
        let now = Tp::now(&self.tz);
        for job in &mut self.jobs {
            if job.is_pending(&now) {
                job.execute(&now);
            }
        }
    }
pub fn run_pending ( & mut self ) { let now = Tp :: now ( & self . tz ) ; for job in & mut self . jobs { if job . is_pending ( & now ) { job . execute ( & now ) ; } } }
Run all jobs that should run at this time.
Run all jobs that should run at this time .
&mut self
use clokwerk::*;
None
use clokwerk::interval::*;
use std::thread;
use std::time::Duration.
use std :: thread ; use std :: time :: Duration .
let mut scheduler = scheduler::new();
loop {
scheduler.run_pending();
thread::sleep(Duration::from_millis(100));
break
}
```
loop { scheduler . run_pending () ; thread :: sleep ( Duration :: from_millis ( 100 )) ; break } ` ` `