update Stream::poll to DelayQueue::poll_expired

This commit is contained in:
Blas Rodriguez Irizar
2020-08-26 09:46:24 +02:00
parent 4e350bbe41
commit 6b612122d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
rust_2018_idioms, rust_2018_idioms,
unreachable_pub unreachable_pub
)] )]
#![deny(intra_doc_link_resolution_failure)] #![deny(broken_intra_doc_links)]
#![doc(test( #![doc(test(
no_crate_inject, no_crate_inject,
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
+1 -1
View File
@@ -33,7 +33,7 @@ use std::task::{self, Poll};
/// ///
/// # `Stream` implementation /// # `Stream` implementation
/// ///
/// Items are retrieved from the queue via [`Stream::poll_expired`]. If no delays have /// Items are retrieved from the queue via [`DelayQueue::poll_expired`]. If no delays have
/// expired, no items are returned. In this case, `NotReady` is returned and the /// expired, no items are returned. In this case, `NotReady` is returned and the
/// current task is registered to be notified once the next item's delay has /// current task is registered to be notified once the next item's delay has
/// expired. /// expired.