mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +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> {
|
impl<T> wheel::Stack for Stack<T> {
|
||||||
type Owned = usize;
|
type Owned = usize;
|
||||||
type Borrowed = usize;
|
type Borrowed = usize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user