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

My slab bump in #246 added a potential new panic in Core's Inner's `cancel_timeout`. Thankfully, the only way `cancel_timeout` can be called is from TimeoutToken's `cancel_timeout`, which is crate-internal only and is only called from Timeout's and Interval's drop fn's. This change simply adds new clarifying documentation around TokenTimeout's cancel_timeout to "future proof" anybody looking to use cancel_timeout directly (not just on drop).