mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
metrics: clarify that num_alive_tasks is not strongly consistent (#7614)
This commit is contained in:
@@ -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
|
||||
///
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user