pub fn in_operation<T>(id: Option<OperationId>, work: impl FnOnce() -> T) -> TExpand 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.