Stabilize stream::interval

pull/885/head
Yoshua Wuyts 4 years ago
parent e8126633a8
commit 14bbacd76a

@ -41,8 +41,6 @@ use crate::utils::{timer_after, Timer};
/// # /// #
/// # Ok(()) }) } /// # Ok(()) }) }
/// ``` /// ```
#[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub fn interval(dur: Duration) -> Interval { pub fn interval(dur: Duration) -> Interval {
Interval { Interval {
delay: timer_after(dur), delay: timer_after(dur),
@ -56,8 +54,6 @@ pub fn interval(dur: Duration) -> Interval {
/// documentation for more. /// documentation for more.
/// ///
/// [`interval`]: fn.interval.html /// [`interval`]: fn.interval.html
#[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[derive(Debug)] #[derive(Debug)]
pub struct Interval { pub struct Interval {
delay: Timer, delay: Timer,

@ -303,6 +303,7 @@
pub use empty::{empty, Empty}; pub use empty::{empty, Empty};
pub use from_fn::{from_fn, FromFn}; pub use from_fn::{from_fn, FromFn};
pub use from_iter::{from_iter, FromIter}; pub use from_iter::{from_iter, FromIter};
pub use interval::{interval, Interval};
pub use once::{once, Once}; pub use once::{once, Once};
pub use repeat::{repeat, Repeat}; pub use repeat::{repeat, Repeat};
pub use repeat_with::{repeat_with, RepeatWith}; pub use repeat_with::{repeat_with, RepeatWith};
@ -313,6 +314,7 @@ pub(crate) mod stream;
mod empty; mod empty;
mod from_fn; mod from_fn;
mod from_iter; mod from_iter;
mod interval;
mod once; mod once;
mod repeat; mod repeat;
mod repeat_with; mod repeat_with;
@ -323,7 +325,6 @@ cfg_unstable! {
mod extend; mod extend;
mod from_stream; mod from_stream;
mod fused_stream; mod fused_stream;
mod interval;
mod into_stream; mod into_stream;
mod pending; mod pending;
mod product; mod product;
@ -335,7 +336,6 @@ cfg_unstable! {
pub use extend::{extend, Extend}; pub use extend::{extend, Extend};
pub use from_stream::FromStream; pub use from_stream::FromStream;
pub use fused_stream::FusedStream; pub use fused_stream::FusedStream;
pub use interval::{interval, Interval};
pub use into_stream::IntoStream; pub use into_stream::IntoStream;
pub use pending::{pending, Pending}; pub use pending::{pending, Pending};
pub use product::Product; pub use product::Product;

Loading…
Cancel
Save