Lines Matching +full:rust +full:- +full:executor
6 //! - [Futures](crate::future::Future) are single eventual values produced by
9 //! - [Streams](crate::stream::Stream) represent a series of values
11 //! - [Sinks](crate::sink::Sink) provide support for asynchronous writing of
13 //! - [Executors](crate::executor) are responsible for running asynchronous
17 //! [cross-task communication](crate::channel).
27 //! ```rust
29 //! # use futures::executor; ///standard executors to provide a context for futures and streams
30 //! # use futures::executor::ThreadPool;
38 //! // implementation of Future. At this point no executor has been provided
43 //! // it will be provided with the executor of the parent block when the parent
46 //! // This executor chaining is done by Future::poll whose second argument
47 //! // is a std::task::Context. This represents our executor, and the Future
49 //! // block's executor.
64 //! // Use the executor provided to this async block to wait for the
72 //! let values: Vec<i32> = executor::block_on(fut_values);
81 #![cfg_attr(feature = "cfg-target-has-atomic", feature(cfg_target_has_atomic))]
82 #![cfg_attr(feature = "read-initializer", feature(read_initializer))]
94 #[cfg(all(feature = "cfg-target-has-atomic", not(feature = "unstable")))]
95 compile_error!("The `cfg-target-has-atomic` feature requires the `unstable` feature as an explicit …
98 compile_error!("The `bilock` feature requires the `unstable` feature as an explicit opt-in to unsta…
100 #[cfg(all(feature = "read-initializer", not(feature = "unstable")))]
101 compile_error!("The `read-initializer` feature requires the `unstable` feature as an explicit opt-i…
129 #[cfg(feature = "async-await")]
131 #[cfg(feature = "async-await")]
132 pub use futures_util::{join, pending, poll, select_biased, try_join}; // Async-await
149 #[cfg(feature = "executor")]
150 #[cfg_attr(docsrs, doc(cfg(feature = "executor")))]
152 pub use futures_executor as executor;