Override the per-search download concurrency. `0` resets to default.
(mut self, n: usize)
| 367 | |
| 368 | /// Override the per-search download concurrency. `0` resets to default. |
| 369 | pub fn with_search_concurrency(mut self, n: usize) -> Self { |
| 370 | self.search_concurrency = if n == 0 { |
| 371 | DEFAULT_SEARCH_CONCURRENCY |
| 372 | } else { |
| 373 | n |
| 374 | }; |
| 375 | self |
| 376 | } |
| 377 | |
| 378 | /// Active per-search download concurrency. |
| 379 | pub fn search_concurrency(&self) -> usize { |