We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe5b85 commit 755e551Copy full SHA for 755e551
tokio/src/runtime/metrics/runtime.rs
@@ -69,6 +69,12 @@ impl RuntimeMetrics {
69
self.handle.inner.num_blocking_threads()
70
}
71
72
+ #[deprecated]
73
+ /// Renamed to [`RuntimeMetrics::num_active_tasks`]
74
+ pub fn active_tasks_count(&self) -> usize {
75
+ self.num_active_tasks()
76
+ }
77
+
78
/// Returns the current number of active tasks in the runtime.
79
///
80
/// This value increases and decreases over time as tasks are spawned and as they are completed or cancelled.
0 commit comments