MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / destroy

Method destroy

src/sandbox_vm/tools/session_management.py:289–293  ·  view source on GitHub ↗
(self, session_id: str)

Source from the content-addressed store, hash-verified

287 self._sessions[session_id].touch()
288
289 def destroy(self, session_id: str) -> None:
290 with self._lock:
291 rt = self._sessions.pop(session_id, None)
292 if rt:
293 rt.close_sync()
294
295 def _run_janitor(self) -> None:
296 while not self._stop.is_set():

Callers 1

readBodyFunction · 0.80

Calls 1

close_syncMethod · 0.80

Tested by

no test coverage detected