mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00

The thread pool optimizes cases where a task currently running on the pool spawns a new future. However, the optimization did not factor in cases where two thread pools interacted. This patch fixes the optimization and includes a test. Fixes #342