You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can you support modifying the number of parallel download shards during the download process #189
@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!
Activity
bezzad commentedon May 17, 2025
@panwangvie Hi!
We’re using
System.Threading.Tasksto 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!