MCPcopy
hub / github.com/omkarcloud/botasaurus / close_driver_pool

Function close_driver_pool

botasaurus/browser_decorator.py:19–26  ·  view source on GitHub ↗
(pool: list)

Source from the content-addressed store, hash-verified

17 raise
18
19def close_driver_pool(pool: list):
20 if len(pool) == 1:
21 close_driver(pool[0])
22 while pool:
23 pool.pop()
24 elif len(pool) > 0:
25 while pool:
26 close_driver(pool.pop())
27
28def browser(
29 _func: Optional[Callable] = None,

Callers 3

run_taskFunction · 0.85
wrapper_browserFunction · 0.85
close_driversFunction · 0.85

Calls 1

close_driverFunction · 0.85

Tested by

no test coverage detected