Metrics should not use Loom atomics. This clarifies this in code and also gives the opportunity to make a cleaner interface for metrics. We could potentially use this interface in the future to track things like the maximum value etc.
Solution
Introduce MetricAtomicUsize as the equivalent of MetricAtomicU64
Motivation
https://github.com/tokio-rs/tokio/pull/6556#discussion_r1617778330
Metrics should not use Loom atomics. This clarifies this in code and also gives the opportunity to make a cleaner interface for metrics. We could potentially use this interface in the future to track things like the maximum value etc.
Solution
Introduce
MetricAtomicUsize
as the equivalent ofMetricAtomicU64