mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 20:03:22 +00:00
Remove KernelThreadExt
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7850f7e60a
commit
a4a8807a20
@ -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();
|
||||
|
Reference in New Issue
Block a user