Peek at the front task without removing it. Returns the highest-priority available task (Critical → High → Low). Used by `poll_write_batch` to decide whether to start a batch.
(&self)
| 111 | /// Returns the highest-priority available task (Critical → High → Low). |
| 112 | /// Used by `poll_write_batch` to decide whether to start a batch. |
| 113 | pub fn front(&self) -> Option<&ExecutionTask> { |
| 114 | if let Some(qt) = self.critical.front() { |
| 115 | return Some(&qt.task); |
| 116 | } |
| 117 | if let Some(qt) = self.high.front() { |
| 118 | return Some(&qt.task); |
| 119 | } |
| 120 | self.low.front().map(|qt| &qt.task) |
| 121 | } |
| 122 | |
| 123 | /// Remove and return the highest-priority front task without applying the |
| 124 | /// drain ratio. |
no outgoing calls
no test coverage detected