pub async fn remove_runner_entry(
runners: &mut HashMap<String, AgentRunner>,
session_id: &str,
) -> Option<AgentRunner>Expand description
Drain publication before removing the old generation from the registry. If the caller is cancelled at the await, the closed old fence remains in the map, so a subsequent reservation still has to drain it before Started.