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(()) }) }
/// ```
#[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub fn interval(dur: Duration) -> Interval {
Interval {
delay: timer_after(dur),
@ -56,8 +54,6 @@ pub fn interval(dur: Duration) -> Interval {
/// documentation for more.
///
/// [`interval`]: fn.interval.html
#[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[derive(Debug)]
pub struct Interval {
delay: Timer,

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

Loading…
Cancel
Save