iota_metrics

Function 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.