mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
Years ago, Tokio was organized as a cluster of separate crates. This architecture required a trait to represent "park the thread and do work.". When all crates were combined into a single crate, the `Park` and `Unpark` traits remained as internal details. This patch removes these traits as they are no longer needed. This is in service of a future refactor that will decouple the various resource drivers and store them in a single struct instead of nesting them. However, in the mean time, removing the Park/Unpark traits adds a bit of messy code to make the conditional compilation work. This code will (hopefully) be short-lived.