MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / pop_front

Method pop_front

nodedb/src/data/executor/core_loop/priority_queues.rs:127–135  ·  view source on GitHub ↗

Remove and return the highest-priority front task without applying the drain ratio. Used by `poll_write_batch` when collecting a write-coalesce batch.

(&mut self)

Source from the content-addressed store, hash-verified

125 ///
126 /// Used by `poll_write_batch` when collecting a write-coalesce batch.
127 pub fn pop_front(&mut self) -> Option<ExecutionTask> {
128 if let Some(qt) = self.critical.pop_front() {
129 return Some(qt.task);
130 }
131 if let Some(qt) = self.high.pop_front() {
132 return Some(qt.task);
133 }
134 self.low.pop_front().map(|qt| qt.task)
135 }
136
137 /// Iterate over all tasks across all tiers in priority order (Critical → High → Low).
138 ///

Callers 15

traverse_bfsMethod · 0.80
subgraphMethod · 0.80
dequeueMethod · 0.80
poll_readyMethod · 0.80
acquireMethod · 0.80
pop_nextMethod · 0.80
plan_graph_splitFunction · 0.80
topo_sortFunction · 0.80
try_join_onceFunction · 0.80
push_auditMethod · 0.80
push_authMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected