time: rename Delay future to Sleep (#2932)

This commit is contained in:
Juan Alvarez
2020-10-08 20:35:12 -07:00
committed by GitHub
parent b704c53b9c
commit 60d81bbe10
25 changed files with 186 additions and 186 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
use crate::time::wheel::{self, Wheel};
use futures_core::ready;
use tokio::time::{sleep_until, Delay, Duration, Error, Instant};
use tokio::time::{sleep_until, Duration, Error, Instant, Sleep};
use slab::Slab;
use std::cmp;
@@ -138,7 +138,7 @@ pub struct DelayQueue<T> {
expired: Stack<T>,
/// Delay expiring when the *first* item in the queue expires
delay: Option<Delay>,
delay: Option<Sleep>,
/// Wheel polling state
wheel_now: u64,