You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,11 +102,32 @@ An incognito page will not share cookies/cache with other browser pages.
102
102
103
103
### .pool(options)
104
104
105
-
Tha main **browserless** constructor expose a singleton browser. This is enough for most scenarios, but in case you need you can intialize a **pool of instances**.
105
+
**browserless** uses internally a singletion browser instance.
106
+
107
+
You can use `.pool` constructor for creating a **pool of instances**:
106
108
107
109
```js
108
110
constcreateBrowserless=require('browserless')
109
-
constbrowserless=createBrowserless.pool()
111
+
constbrowserlessPool=createBrowserless.pool()
112
+
```
113
+
114
+
After that, the API is the same. The acquire/release is done automagically.
115
+
116
+
You can interact with a **browserless** instance directly as well:
0 commit comments