Downloader
Downloader copied to clipboard
Can you support modifying the number of parallel download shards during the download process
When downloading, it takes 5 threads to download. I want to change it to 2 or 10 threads to download
@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!