1 2//! Atomically removes and returns a PID (for cancel operations). 3 4pub fn Fn(OperationId:&str) -> Option<u32> { 5 if OperationId.is_empty() { 6 return None; 7 } 8 9 super::running_processes().lock().ok().and_then(|mut M| M.remove(OperationId)) 10}