Re-land sharded spawn blocking queue
Author: alexCreated Apr 18, 2026Updated Sep 25, 2026
LabelsA-tokioM-blocking
https://github.com/tokio-rs/tokio/pull/7757 landed a sharded spawn blocking queue to improve scalability, however this was reverted due to causing hangs (see: https://github.com/tokio-rs/tokio/issues/8056).
I'm pretty sure the bug that caused this was due to handling of idle threads and whether a thread could be woken vs. needed to be spawned.
In any event, my proposed path to re-landing is:
- Land regression tests for the bug
- Land refactor to enable...
- Land sharded queue in a disabled-by-default configuration so users can opt into it
- After we've had time to collect feedback/testing, make the sharded queue the default behavior
Source: tokio-rs/tokio