Function axtask::spawn

source ·
pub fn spawn<F>(f: F) -> AxTaskRef
where 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.