mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
timer: Implement Default for DelayQueue (#1118)
This commit is contained in:
parent
9fa6092e5a
commit
f9a0cb8792
@ -711,6 +711,12 @@ impl<T> Stream for DelayQueue<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Default for DelayQueue<T> {
|
||||
fn default() -> DelayQueue<T> {
|
||||
DelayQueue::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> wheel::Stack for Stack<T> {
|
||||
type Owned = usize;
|
||||
type Borrowed = usize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user