MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / close_runtime_sync

Function close_runtime_sync

plugins/_browser/helpers/runtime.py:2395–2401  ·  view source on GitHub ↗
(context_id: str, *, delete_profile: bool = True)

Source from the content-addressed store, hash-verified

2393
2394
2395def close_runtime_sync(context_id: str, *, delete_profile: bool = True) -> None:
2396 task = DeferredTask(thread_name="BrowserCleanup")
2397 task.start_task(close_runtime, context_id, delete_profile=delete_profile)
2398 try:
2399 task.result_sync(timeout=30)
2400 finally:
2401 task.kill(terminate_thread=True)
2402
2403
2404async def close_all_runtimes(*, delete_profiles: bool = False) -> None:

Callers 2

executeMethod · 0.90
executeMethod · 0.90

Calls 4

start_taskMethod · 0.95
result_syncMethod · 0.95
killMethod · 0.95
DeferredTaskClass · 0.90

Tested by

no test coverage detected