pub fn every(&mut self, ival: Interval) -> &mut AsyncJob<Tz, Tp> {
        let job = AsyncJob::<Tz, Tp>::new(ival, self.tz.clone());
        self.jobs.push(job);
        let last_index = self.jobs.len() - 1;
        &mut self.jobs[last_index]
    }
/// Add a new job to the scheduler to be run on the given interval
/// ```rust
/// # use clokwerk::*;
/// # use clokwerk::Interval::*;
/// # use std::future::Future;
/// # use std::pin::Pin;
/// # async fn some_async_fn() {}
/// # fn returns_boxed_future() -> Box<dyn Future<Output=()> + Send> { Box::new(some_async_fn()) }
/// # fn returns_pinned_boxed_future() -> Pin<Box<dyn Future<Output=()> + Send>> { Box::pin(some_async_fn()) }
/// let mut scheduler = AsyncScheduler::new();
/// scheduler.every(10.minutes()).plus(30.seconds()).run(|| async { println!("Periodic task") });
/// scheduler.every(1.day()).at("3:20 pm").run(|| some_async_fn());
/// scheduler.every(Wednesday).at("14:20:17").run(|| Pin::from(returns_boxed_future()));
/// scheduler.every(Weekday).run(|| returns_pinned_boxed_future());
/// ```
Add a new job to the scheduler to be run on the given interval
```rust
Add a new job to the scheduler to be run on the given interval ` ` ` rust
pub fn every(&mut self, ival: Interval) -> &mut AsyncJob<Tz, Tp> {
        let job = AsyncJob::<Tz, Tp>::new(ival, self.tz.clone());
        self.jobs.push(job);
        let last_index = self.jobs.len() - 1;
        &mut self.jobs[last_index]
    }
pub fn every ( & mut self , ival : Interval ) -> & mut AsyncJob < Tz , Tp > { let job = AsyncJob :: < Tz , Tp > :: new ( ival , self . tz . clone ( ) ) ; self . jobs . push ( job ) ; let last_index = self . jobs . len ( ) - 1 ; & mut self . jobs [ last_index ] }
Add a new job to the scheduler to be run on the given interval
```rust
Add a new job to the scheduler to be run on the given interval ` ` ` rust
&mut self
ival
Interval
use clokwerk::*;
None
use clokwerk::interval::*;
None
use std::future::future;
None
use std::pin::pin;
None
async fn some_async_fn() {}
None
fn returns_boxed_future() -> box<dyn future<output=()> + send> { box::new(some_async_fn()) }
None
fn returns_pinned_boxed_future() -> pin<box<dyn future<output=()> + send>> { box::pin(some_async_fn()) }
let mut scheduler = AsyncScheduler::new();
scheduler.every(10.minutes()).plus(30.seconds()).run(|| async { println!("Periodic task") });
scheduler.every(1.day()).at("3:20 pm").run(|| some_async_fn());
scheduler.every(Wednesday).at("14:20:17").run(|| Pin::from(returns_boxed_future()));
scheduler.every(Weekday).run(|| returns_pinned_boxed_future());
```
let mut scheduler = AsyncScheduler :: new () ; scheduler . every ( 10 . minutes () ) . plus ( 30 . seconds () ) . run ( || async { println! ( " Periodic task " ) } ) ; scheduler . every ( 1 . day () ) . at ( " 3 : 20 pm " ) . run ( || some_async_fn () ) ; scheduler . every ( Wednesday ) . at ( " 14 : 20 : 17 " ) . run ( || Pin :: from ( returns_boxed_future () )) ; scheduler . every ( Weekday ) . run ( || returns_pinned_boxed_future () ) ; ` ` `