Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ruddle/Fomos
/ new
Method
new
bootloader/kernel/src/task/mod.rs:11–16 ·
view source on GitHub ↗
(future: impl Future<Output = ()> + 'static)
Source
from the content-addressed store, hash-verified
9
}
10
impl Task {
11
pub fn new(future: impl Future<Output = ()> + 'static) -> Task {
12
Task {
13
id: TaskId::new(),
14
future: Box::pin(future),
15
}
16
}
17
}
18
use core::task::{Context, Poll};
19
Callers
nothing calls this directly
Calls
1
TaskId
Class · 0.85
Tested by
no test coverage detected