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