Skip to main content

with_current

Function with_current 

Source
pub fn with_current<T>(reader: impl FnOnce(&TraceState) -> T) -> Option<T>
Expand description

Read the current trace state, if this task runs inside a trace bracket.