Skip to content

Can you support modifying the number of parallel download shards during the download process #189

Closed

Description

@panwangvie

When downloading, it takes 5 threads to download. I want to change it to 2 or 10 threads to download

Activity

  1. self-assigned this
    on May 17, 2025
  2. bezzad commented on May 17, 2025

    @bezzad
    Owner

    @panwangvie Hi!
    We’re using System.Threading.Tasks to download each chunk, so the actual threads are managed by .NET’s thread pool rather than created manually. There isn’t a built‑in setting to say “use 2 threads” or “10 threads” at the Task level.

    If you need to limit or increase concurrency you’d control how many tasks you launch (for example by using ParallelOptions.MaxDegreeOfParallelism, a SemaphoreSlim, or TPL Dataflow) rather than tweaking the thread pool directly. Let me know if you’d like an example!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions