Trait pulse::Scheduler [] [src]

pub trait Scheduler: Debug {
    fn wait(&self, signal: Signal) -> Result<(), WaitError>;
    fn wait_timeout_ms(
        &self,
        signal: Signal,
        timeout: u32
    ) -> Result<(), TimeoutError>; }

This is the hook into the async wait methods provided by pulse. It is required for the user to override the current system scheduler.

Required Methods

Wait until the signal is made ready or errored

Wait until the signal is made ready or errored or the timeout has been reached.

Implementors