stream: expose Elapsed error (#4502)

This commit is contained in:
Alisue 2022-03-02 21:53:21 +09:00 committed by GitHub
parent ba49294bae
commit 014be71cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -77,6 +77,9 @@ pub mod wrappers;
mod stream_ext;
pub use stream_ext::{collect::FromStream, StreamExt};
cfg_time! {
pub use stream_ext::timeout::Elapsed;
}
mod empty;
pub use empty::{empty, Empty};

View File

@ -56,7 +56,7 @@ mod try_next;
use try_next::TryNext;
cfg_time! {
mod timeout;
pub(crate) mod timeout;
use timeout::Timeout;
use tokio::time::Duration;
mod throttle;