Skip to content

Commit 755e551

Browse files
committed
deprecate
1 parent afe5b85 commit 755e551

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tokio/src/runtime/metrics/runtime.rs

+6
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ impl RuntimeMetrics {
6969
self.handle.inner.num_blocking_threads()
7070
}
7171

72+
#[deprecated]
73+
/// Renamed to [`RuntimeMetrics::num_active_tasks`]
74+
pub fn active_tasks_count(&self) -> usize {
75+
self.num_active_tasks()
76+
}
77+
7278
/// Returns the current number of active tasks in the runtime.
7379
///
7480
/// This value increases and decreases over time as tasks are spawned and as they are completed or cancelled.

0 commit comments

Comments
 (0)