|new 0.1.6||Mar 22, 2019|
|0.1.5||Mar 2, 2019|
|0.1.4||Nov 22, 2018|
|0.1.3||Sep 27, 2018|
|0.0.0||Feb 8, 2018|
#3 in Asynchronous
180,929 downloads per month
Used in 538 crates (22 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.