MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / push

Method push

user/src/bin/stackless_coroutine.rs:66–75  ·  view source on GitHub ↗
(&mut self, closure: C)

Source from the content-addressed store, hash-verified

64 }
65
66 fn push<C, F>(&mut self, closure: C)
67 where
68 F: Future<Output = ()> + 'static,
69 C: FnOnce(Task) -> F,
70 {
71 let task = Task {
72 state: State::Running,
73 };
74 self.tasks.push_back(Box::pin(closure(task)));
75 }
76
77 fn run(&mut self) {
78 let waker = create_waker();

Callers 15

_startFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
newMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected