MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / pending_snapshot_map

Method pending_snapshot_map

crates/openshell-driver-docker/src/lib.rs:1087–1093  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1085 }
1086
1087 async fn pending_snapshot_map(&self) -> HashMap<String, DriverSandbox> {
1088 let pending = self.pending.lock().await;
1089 pending
1090 .iter()
1091 .map(|(sandbox_id, record)| (sandbox_id.clone(), record.sandbox.clone()))
1092 .collect()
1093 }
1094
1095 async fn clear_pending_sandbox(&self, sandbox_id: &str) {
1096 let mut pending = self.pending.lock().await;

Callers 1

current_snapshotsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected