Skip to content

Commit

Permalink
mark as unstable
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <[email protected]>
  • Loading branch information
yoshuawuyts committed Oct 15, 2019
1 parent d7e8b2d commit 9eab45f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/future/into_future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ use crate::future::Future;
/// }
/// }
/// ```
#[cfg(any(feature = "unstable", feature = "docs"))]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub trait IntoFuture {
/// The type of value produced on completion.
type Output;
Expand Down
5 changes: 3 additions & 2 deletions src/future/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,20 @@ pub use async_macros::{join, select, try_join, try_select};

use cfg_if::cfg_if;

pub use into_future::IntoFuture;
pub use pending::pending;
pub use poll_fn::poll_fn;
pub use ready::ready;

mod into_future;
mod pending;
mod poll_fn;
mod ready;

cfg_if! {
if #[cfg(any(feature = "unstable", feature = "docs"))] {
mod into_future;
mod timeout;

pub use into_future::IntoFuture;
pub use timeout::{timeout, TimeoutError};
}
}

0 comments on commit 9eab45f

Please sign in to comment.