Execute batch operations in parallel while automatically managing browser sessions and windows.
An array of URLs to process in parallel.
The URL to process.
Additional context data to be passed with the URL.
The operation function to execute for each URL.
The input provided to the operation function.
The ID of the browser session.
The ID of the browser window.
The URL that can be used to view the browser window in real-time.
The URL being processed, including any context data.
The response returned by the operation function.
Contains the relevant data returned by the operation, which will ultimately be returned in the results array.
If set to true, the batch operator will stop processing remaining URLs.
If set, additional URLs will be processed as part of the same batch operation.
Configuration options for the batch operation.
Maximum number of concurrent browser sessions. Defaults to 30.
Maximum number of windows per session. Defaults to 1 (recommended).
Configuration for browser sessions.
Callback function for handling errors.
The error that occurred.
The URLs that were being processed when the error occurred.
The ID of the session where the error occurred (if available).
The ID of the window where the error occurred (if available).
The live view URL of the window where the error occurred (if available).
An array containing the results from each operation, in the order that the operations were executed. Note that the order of the input URLs does not necessarily match the order of the results.