Trait stakker::task::TaskTrait

source ·
pub trait TaskTrait {
    // Required method
    fn resume(self: Pin<&mut Self>, core: &mut Core);
}
Expand description

Trait that tasks must implement

Required Methods§

source

fn resume(self: Pin<&mut Self>, core: &mut Core)

Resume execution of the task. This must handle spurious calls gracefully, even if nothing has changed.

Implementors§