P
Paul Welter
I have a web service the makes calls asynchronously to a server to download
files. The user has the ability to select many files to download. When
making the web service call using the proxy class, the async call goes on
the thread pool. The problem is that the thread pool can have 25 threads.
So, the user could potentially be downloading 25 files at a time. This will
overwhelm the clients internet connection. I'd like to find an easy way to
limit the number of async calls while queuing the rest without blocking the
UI thread. How do I change the number of threads the thread pool can have?
Do I have to implement my own thread pool? If so, how would I do that and
how would I tell the proxy class to use my thread pool?
thanks
Paul
files. The user has the ability to select many files to download. When
making the web service call using the proxy class, the async call goes on
the thread pool. The problem is that the thread pool can have 25 threads.
So, the user could potentially be downloading 25 files at a time. This will
overwhelm the clients internet connection. I'd like to find an easy way to
limit the number of async calls while queuing the rest without blocking the
UI thread. How do I change the number of threads the thread pool can have?
Do I have to implement my own thread pool? If so, how would I do that and
how would I tell the proxy class to use my thread pool?
thanks
Paul