Trait async_task::Schedule

source ·
pub trait Schedule<M = ()>: Sealed<M> {
    // Required method
    fn schedule(&self, runnable: Runnable<M>, info: ScheduleInfo);
}
Expand description

The trait for scheduling functions.

Required Methods§

source

fn schedule(&self, runnable: Runnable<M>, info: ScheduleInfo)

The actual scheduling procedure.

Implementors§

source§

impl<M, F> Schedule<M> for WithInfo<F>
where F: Fn(Runnable<M>, ScheduleInfo),

source§

impl<M, F> Schedule<M> for F
where F: Fn(Runnable<M>),