pub fn with_current_task_metadata<F: FnOnce(Option<&TaskMetadata>) -> R, R>(
f: F,
) -> RExpand 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,
) -> RCalls f with the current task metadata, if there is a current task.