#futures #tokio


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

8 releases

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

#15 in Asynchronous

Download history 39509/week @ 2019-01-22 40064/week @ 2019-01-29 39926/week @ 2019-02-05 45053/week @ 2019-02-12 46646/week @ 2019-02-19 55267/week @ 2019-02-26 58867/week @ 2019-03-05 58015/week @ 2019-03-12 57864/week @ 2019-03-19 55948/week @ 2019-03-26 59893/week @ 2019-04-02 61481/week @ 2019-04-09 50833/week @ 2019-04-16 51082/week @ 2019-04-23 50334/week @ 2019-04-30

199,533 downloads per month
Used in 684 crates (24 directly)

MIT license

1.5K SLoC


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:

  • 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.

For more details, see executor module documentation in the Tokio crate.