MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / recycle_browser

Method recycle_browser

src/services/browser_captcha.py:1387–1390  ·  view source on GitHub ↗

Recycle the current shared browser.

(self, reason: str = "unknown", rotate_profile: bool = True)

Source from the content-addressed store, hash-verified

1385 await self._close_browser(playwright, browser, context, browser_pid=browser_pid)
1386
1387 async def recycle_browser(self, reason: str = "unknown", rotate_profile: bool = True):
1388 """Recycle the current shared browser."""
1389 async with self._shared_browser_lock:
1390 await self._recycle_browser_locked(reason=reason, rotate_profile=rotate_profile)
1391
1392 async def _get_or_create_shared_browser(
1393 self,

Callers 7

submit_flow_requestMethod · 0.95
get_tokenMethod · 0.95
_idle_reaper_loopMethod · 0.80
reload_browser_countMethod · 0.80
report_errorMethod · 0.80
closeMethod · 0.80

Calls 1

Tested by

no test coverage detected