Remove KernelThreadExt

This commit is contained in:
Ruihan Li
2024-11-10 16:48:35 +08:00
committed by Tate, Hongliang Tian
parent 7850f7e60a
commit a4a8807a20
11 changed files with 111 additions and 138 deletions

View File

@ -215,7 +215,7 @@ impl TaskOptions {
Ok(new_task)
}
/// Builds a new task and run it immediately.
/// Builds a new task and runs it immediately.
pub fn spawn(self) -> Result<Arc<Task>> {
let task = Arc::new(self.build()?);
task.run();