More deprecation notices (relates #2036) (#2098)

This commit is contained in:
John-John Tedro
2020-01-14 15:36:16 -05:00
committed by Lucio Franco
parent 86de4baacc
commit 0f11d56a3c
24 changed files with 120 additions and 24 deletions
+5 -5
View File
@@ -3,11 +3,11 @@
A library for scheduling execution of futures concurrently across a pool of
threads.
This crate is **deprecated in tokio 0.2.x** and has been moved and refactored
into various places in the [`tokio::runtime`] module of the [`tokio`] crate.
Note that there is no longer a `ThreadPool` type, you are instead encouraged to
make use of the thread pool used by a `Runtime` configured to use the
[threaded scheduler].
> **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved and
> refactored into various places in the [`tokio::runtime`] module of the
> [`tokio`] crate. Note that there is no longer a `ThreadPool` type, you are
> instead encouraged to make use of the thread pool used by a `Runtime`
> configured to use the [threaded scheduler].
[`tokio::runtime`]: https://docs.rs/tokio/latest/tokio/runtime/index.html
[`tokio`]: https://docs.rs/tokio/latest/tokio/index.html
+10
View File
@@ -3,6 +3,16 @@
//! A work-stealing based thread pool for executing futures.
//!
//! > **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved
//! > and refactored into various places in the [`tokio::runtime`] module of the
//! > [`tokio`] crate. Note that there is no longer a `ThreadPool` type, you are
//! > instead encouraged to make use of the thread pool used by a `Runtime`
//! > configured to use the [threaded scheduler].
//!
//! [`tokio::runtime`]: https://docs.rs/tokio/latest/tokio/runtime/index.html
//! [`tokio`]: https://docs.rs/tokio/latest/tokio/index.html
//! [threaded scheduler]: https://docs.rs/tokio/latest/tokio/runtime/index.html#threaded-scheduler
//!
//! The Tokio thread pool supports scheduling futures and processing them on
//! multiple CPU cores. It is optimized for the primary Tokio use case of many
//! independent tasks with limited computation and with most tasks waiting on