Function iota_metrics::with_server_timing
source ยท pub async fn with_server_timing<T>(
timer: Arc<Mutex<Timer>>,
fut: impl Future<Output = T> + Send + 'static,
) -> T
Expand description
Create a new task-local ServerTiming context and run the provided future within it. Only intended for use by macros within this module.