pub type TaskBody = Box<dyn FnMut(&mut NodeContext<'_>) -> TaskState>;Expand description
One step of a cooperative state machine. Captured variables are the task’s volatile state: they vanish when the owning process crashes.
Aliased Type§
pub struct TaskBody(/* private fields */);