Skip to content

Commit 74af1f0

Browse files
committed
docs: Update num_alive_tasks docs
1 parent 637fc1d commit 74af1f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tokio/src/runtime/metrics/runtime.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ impl RuntimeMetrics {
5454
/// This counter increases when a task is spawned and decreases when a
5555
/// task exits.
5656
///
57+
/// Note: When using the multi-threaded runtime this number may not
58+
/// not have strong consistency i.e. no tasks may be running but the metric
59+
/// reports otherwise.
60+
///
5761
/// # Examples
5862
///
5963
/// ```

0 commit comments

Comments
 (0)