Skip to content

Commit

Permalink
deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Apr 25, 2024
1 parent afe5b85 commit 755e551
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tokio/src/runtime/metrics/runtime.rs
Expand Up @@ -69,6 +69,12 @@ impl RuntimeMetrics {
self.handle.inner.num_blocking_threads()
}

#[deprecated]
/// Renamed to [`RuntimeMetrics::num_active_tasks`]
pub fn active_tasks_count(&self) -> usize {
self.num_active_tasks()
}

/// Returns the current number of active tasks in the runtime.
///
/// This value increases and decreases over time as tasks are spawned and as they are completed or cancelled.
Expand Down

0 comments on commit 755e551

Please sign in to comment.