Macro kernel::spawn_task
source · [−]macro_rules! spawn_task {
($executor:expr, $task:expr) => { ... };
}
Expand description
Spawns a new task to run in the given executor.
It also automatically defines a new lockdep lock class for executors (e.g., workqueue) that require one.