Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add
RequestQueue.addRequestsBatched()
that is non-block…
…ing (#1996) Previously, the `BasicCrawler.addRequests()` was the only place where we're handling adding the requests in non-blocking manner. This logic is now moved to the `RequestQueue.addRequestsBatched()` method. This method now also correctly handles the `requestsFromUrl` option, meaning it can be also used with the `BasicCrawler.addRequests()` shortcut. Moreover, the batching is now configurable via `batchSize` and `waitBetweenBatchesMillis` options. Closes #1995
- Loading branch information
Showing
2 changed files
with
145 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters