Downloader icon indicating copy to clipboard operation
Downloader copied to clipboard

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

Open panwangvie opened this issue 7 months ago • 1 comments

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

panwangvie avatar May 16 '25 03:05 panwangvie

@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!

bezzad avatar May 17 '25 15:05 bezzad