pub fn with_current_task_metadata<F: FnOnce(Option<&TaskMetadata>) -> R, R>(
f: F,
) -> R
Expand description
Calls f
with the current task metadata, if there is a current task.
pub fn with_current_task_metadata<F: FnOnce(Option<&TaskMetadata>) -> R, R>(
f: F,
) -> R
Calls f
with the current task metadata, if there is a current task.