Skip to content

Commit

Permalink
Additionally export Poll under task module (like in std)
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorBreakfast committed Jun 22, 2018
1 parent ddbb39d commit f0c8787
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions futures-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,13 @@ macro_rules! pin_mut {
)* }
}

mod poll;
pub use poll::Poll;

pub mod future;
pub use future::{Future, CoreFutureExt, TryFuture};

pub mod stream;
pub use stream::Stream;

pub mod task;
pub use task::Poll;

pub mod executor;
3 changes: 3 additions & 0 deletions futures-core/src/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ pub use std::task::{Wake, local_waker, local_waker_from_nonlocal};

pub use core::task::Context;

mod poll;
pub use self::poll::Poll;

#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
mod atomic_waker;
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
Expand Down
File renamed without changes.

0 comments on commit f0c8787

Please sign in to comment.