Skip to content

Commit ac29abc

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

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
@@ -53,6 +53,10 @@ impl RuntimeMetrics {
5353
///
5454
/// This counter increases when a task is spawned and decreases when a
5555
/// task exits.
56+
///
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.
5660
///
5761
/// # Examples
5862
///

0 commit comments

Comments
 (0)