Function pal_async::task::with_current_task_metadata
source ยท 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.