MCPcopy Create free account
hub / github.com/Ruddle/Fomos / Executor

Class Executor

bootloader/kernel/src/task/executor.rs:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63pub struct Executor {
64 tasks: BTreeMap<TaskId, Task>,
65 task_queue: Arc<ArrayQueue<TaskId>>,
66 spawn_queue: Arc<ArrayQueue<Task>>,
67 waker_cache: BTreeMap<TaskId, Waker>,
68}
69pub fn qpush(queue: Arc<ArrayQueue<Task>>, f: impl Future<Output = ()> + 'static) {
70 queue.push(Task::new(f));
71}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected