Function itron_solid_asp3::task::current[][src]

pub fn current() -> Result<Current, BadContextError>
This is supported on crate feature unstable only.
Expand description

Get a reference to the current task.

This function fails if it’s called from an interrupt context or the CPU lock state is active.