mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
stream: expose Elapsed
error (#4502)
This commit is contained in:
parent
ba49294bae
commit
014be71cca
@ -77,6 +77,9 @@ pub mod wrappers;
|
|||||||
|
|
||||||
mod stream_ext;
|
mod stream_ext;
|
||||||
pub use stream_ext::{collect::FromStream, StreamExt};
|
pub use stream_ext::{collect::FromStream, StreamExt};
|
||||||
|
cfg_time! {
|
||||||
|
pub use stream_ext::timeout::Elapsed;
|
||||||
|
}
|
||||||
|
|
||||||
mod empty;
|
mod empty;
|
||||||
pub use empty::{empty, Empty};
|
pub use empty::{empty, Empty};
|
||||||
|
@ -56,7 +56,7 @@ mod try_next;
|
|||||||
use try_next::TryNext;
|
use try_next::TryNext;
|
||||||
|
|
||||||
cfg_time! {
|
cfg_time! {
|
||||||
mod timeout;
|
pub(crate) mod timeout;
|
||||||
use timeout::Timeout;
|
use timeout::Timeout;
|
||||||
use tokio::time::Duration;
|
use tokio::time::Duration;
|
||||||
mod throttle;
|
mod throttle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user