Skip to main content

in_operation

Function in_operation 

Source
pub fn in_operation<T>(id: Option<OperationId>, work: impl FnOnce() -> T) -> T
Expand description

Run work with id as this thread’s correlation identity, restoring whatever was installed before — including on panic unwind, so a panicking worker cannot leak its identity into unrelated records.