Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F>(f: F) -> AxTaskRef
where F: FnOnce() + Send + 'static,
Expand description

Spawns a new task with the default parameters.

The default task name is an empty string. The default task stack size is default_task_stack_size.

Returns the task reference.