(context_id: str, *, delete_profile: bool = True)
| 2393 | |
| 2394 | |
| 2395 | def 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 | |
| 2404 | async def close_all_runtimes(*, delete_profiles: bool = False) -> None: |
no test coverage detected