metrics: clarify that num_alive_tasks is not strongly consistent (#7614)

This commit is contained in:
Joe Thomas
2025-12-29 21:45:58 +08:00
committed by GitHub
parent 7388f2d2ea
commit 33566434bb
+4
View File
@@ -54,6 +54,10 @@ impl RuntimeMetrics {
/// This counter increases when a task is spawned and decreases when a
/// task exits.
///
/// Note: When using the multi-threaded runtime this number may not
/// not have strong consistency i.e. no tasks may be running but the metric
/// reports otherwise.
///
/// # Examples
///
/// ```