summaryrefslogtreecommitdiffstats
path: root/vendor/tokio/src/future/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/tokio/src/future/mod.rs')
-rw-r--r--vendor/tokio/src/future/mod.rs35
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/tokio/src/future/mod.rs b/vendor/tokio/src/future/mod.rs
new file mode 100644
index 000000000..96483acd7
--- /dev/null
+++ b/vendor/tokio/src/future/mod.rs
@@ -0,0 +1,35 @@
+#![cfg_attr(not(feature = "macros"), allow(unreachable_pub))]
+
+//! Asynchronous values.
+
+#[cfg(any(feature = "macros", feature = "process"))]
+pub(crate) mod maybe_done;
+
+mod poll_fn;
+pub use poll_fn::poll_fn;
+
+cfg_not_loom! {
+ mod ready;
+ pub(crate) use ready::{ok, Ready};
+}
+
+cfg_process! {
+ mod try_join;
+ pub(crate) use try_join::try_join3;
+}
+
+cfg_sync! {
+ mod block_on;
+ pub(crate) use block_on::block_on;
+}
+
+cfg_trace! {
+ mod trace;
+ pub(crate) use trace::InstrumentedFuture as Future;
+}
+
+cfg_not_trace! {
+ cfg_rt! {
+ pub(crate) use std::future::Future;
+ }
+}