feat: get pool size
This commit is contained in:
@@ -245,5 +245,12 @@ export class BrowserPool {
|
|||||||
return browserIds;
|
return browserIds;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the total number of browsers in the pool.
|
||||||
|
*/
|
||||||
|
public getPoolSize = (): number => {
|
||||||
|
return Object.keys(this.pool).length;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user