[−][src]Trait drone_cortex_m::thr::ThrExec
Execution methods for interrupt tokens.
Required methods
fn exec<F, O: ExecOutput>(self, fut: F) where
F: Future<Output = O> + Send + 'static,
F: Future<Output = O> + Send + 'static,
Adds an executor for the future fut
to the fiber chain and triggers
the thread immediately.
fn add_exec<F, O: ExecOutput>(self, fut: F) where
F: Future<Output = O> + Send + 'static,
F: Future<Output = O> + Send + 'static,
Adds an executor for the future fut
to the fiber chain.
The future fut
will start polling on the next thread wake-up.
fn trigger(self)
Generates the interrupt.
This method will wake-up the thread.