mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
time: add DelayQueue::peek (#5569)
Signed-off-by: Jens Reidel <[email protected]>
This commit is contained in:
@@ -206,6 +206,10 @@ impl<T: Stack> Level<T> {
|
||||
|
||||
ret
|
||||
}
|
||||
|
||||
pub(crate) fn peek_entry_slot(&self, slot: usize) -> Option<T::Owned> {
|
||||
self.slot[slot].peek()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> fmt::Debug for Level<T> {
|
||||
|
||||
Reference in New Issue
Block a user