tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
25.44k stars 2.3k forks source link

metrics: rename `num_active_tasks` to `num_alive_tasks` #6667

Closed Darksonn closed 1 week ago

Darksonn commented 1 week ago

The word "active" is the opposite of "idle", but an "idle task" normally refers to a task that is alive but not currently able to make progress. However, idle tasks are included in this counter.

Instead of "active", I propose the name "alive".