tokio/tokio-current-thread
Carl Lerche ed3ece266b
current-thread: fix shutdown on idle (#763)
When spawning using `Handle` while on the executor, tasks were being
double counted. This prevented the number of active tasks to reach zero,
thus preventing the executor from shutting down.

This changes `spawn` to check if being called from the executor
**before** incrementing the number of active tasks.

Fixes #760
2018-11-20 09:17:07 -08:00
..
2018-06-12 10:26:03 -07:00
2018-06-12 10:26:03 -07:00

tokio-current-thread

Single threaded executor for Tokio.

Documentation

Overview

This crate provides the single threaded executor which execute many tasks concurrently.

License

This project is licensed under the MIT license.

Contribution

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.