MCPcopy 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}
10impl 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}
18use core::task::{Context, Poll};
19

Callers

nothing calls this directly

Calls 1

TaskIdClass · 0.85

Tested by

no test coverage detected