mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
update Stream::poll to DelayQueue::poll_expired
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user