Skip to content

Commit

Permalink
metrics: document Runtime::metrics (#6496)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvcache committed Apr 19, 2024
1 parent 5ba12a7 commit f3bfed3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokio/src/runtime/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ impl std::panic::RefUnwindSafe for Runtime {}

cfg_metrics! {
impl Runtime {
/// TODO
/// Returns a view that lets you get information about how the runtime
/// is performing.
pub fn metrics(&self) -> crate::runtime::RuntimeMetrics {
self.handle.metrics()
}
Expand Down

0 comments on commit f3bfed3

Please sign in to comment.