pub fn spawn<F>(f: F) -> AxTaskRefwhere
F: FnOnce() + Send + 'static,Available on crate feature
multitask only.Expand description
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.