#futures #tokio

deprecated tokio-current-thread

Single threaded executor which manage many tasks concurrently on the current thread

10 releases

0.2.0-alpha.1 Aug 8, 2019
0.1.7 Feb 5, 2020
0.1.6 Mar 22, 2019
0.1.4 Nov 22, 2018
0.0.0 Feb 8, 2018

#291 in #asynchronous

Download history 29176/week @ 2023-02-05 29602/week @ 2023-02-12 33528/week @ 2023-02-19 44207/week @ 2023-02-26 33041/week @ 2023-03-05 30723/week @ 2023-03-12 28005/week @ 2023-03-19 26563/week @ 2023-03-26 24046/week @ 2023-04-02 25059/week @ 2023-04-09 22288/week @ 2023-04-16 24799/week @ 2023-04-23 26047/week @ 2023-04-30 24312/week @ 2023-05-07 26775/week @ 2023-05-14 26943/week @ 2023-05-21

105,172 downloads per month
Used in fewer than 10 crates

MIT license



Single threaded executor for Tokio.


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.

CurrentThread is the main type of this crate. It executes tasks on the current thread. The easiest way to start a new CurrentThread executor is to call block_on_all with an initial task to seed the executor. All tasks that are being managed by a CurrentThread executor are able to spawn additional tasks by calling spawn.

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.