Function axtask::spawn

source ·
pub fn spawn<F>(f: F) -> AxTaskRefwhere
    F: FnOnce() + Send + 'static,
Available on crate feature multitask only.
Expand description

set priority for current task. In CFS, priority is the nice value, ranging from -20 to 19. Spawns a new task with the default parameters.

The default task name is an empty string. The default task stack size is axconfig::TASK_STACK_SIZE.

Returns the task reference.