|0.1.4||Nov 22, 2018|
|0.1.3||Sep 27, 2018|
|0.1.1||Aug 7, 2018|
|0.1.0||Jun 13, 2018|
|0.0.0||Feb 8, 2018|
#5 in Asynchronous
116,771 downloads per month
Used in 378 crates (17 directly)
Single threaded executor for Tokio.
This crate provides the single threaded executor which execute many tasks concurrently.
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.
A single-threaded executor which executes tasks on the same thread from which they are spawned.
The crate provides:
CurrentThreadis the main type of this crate. It executes tasks on the current thread. The easiest way to start a new
CurrentThreadexecutor is to call
block_on_allwith an initial task to seed the executor. All tasks that are being managed by a
CurrentThreadexecutor are able to spawn additional tasks by calling
Application authors will not use this crate directly. Instead, they will use the
tokio crate. Library authors should only depend on
tokio-current-thread if they
are building a custom task executor.
For more details, see executor module documentation in the Tokio crate.