Trait rxrust::scheduler::LocalScheduler [−][src]
pub trait LocalScheduler {
fn spawn<Fut>(&self, future: Fut)
where
Fut: Future<Output = ()> + 'static;
fn schedule<T: 'static>(
&self,
task: impl FnOnce(T) + 'static,
delay: Option<Duration>,
state: T
) -> SpawnHandle { ... }
fn schedule_repeating(
&self,
task: impl FnMut(usize) + 'static,
time_between: Duration,
at: Option<Instant>
) -> SpawnHandle { ... }
}