MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / closeDriverPool

Function closeDriverPool

js/botasaurus-js/src/playwright.ts:130–139  ·  view source on GitHub ↗
(pool: (PlaywrightChrome | null)[])

Source from the content-addressed store, hash-verified

128};
129
130const closeDriverPool = async (pool: (PlaywrightChrome | null)[]) => {
131 if (pool.length === 1) {
132 await closeDriver(pool[0]);
133 pool.length = 0;
134 } else if (pool.length > 0) {
135 while (pool.length > 0) {
136 await closeDriver(pool.pop() as PlaywrightChrome);
137 }
138 }
139};
140
141function chromeNotInstalledError() {
142 getBotasaurusStorage().setItem("isChromeInstalled", false )

Callers 2

performPlaywrightFunction · 0.85
createPlaywrightFunction · 0.85

Calls 1

closeDriverFunction · 0.85

Tested by

no test coverage detected