Hi,
I have this code:
string url="bla";
ThreadPool.QueueUserWorkItem (delegate {
try {
WebClient client = new WebClient();
string html = client.DownloadString(url);
client.Dispose();
client = null;
// Do something with the result.
} catch (WebException e) {}
});
... but it seams to slow/block the main UI anyway somehow.
What is best practice in Monotouch to fetch a webpage HTML without blocking
the UI? I need to fetch like 60 webpages (actually it's JSON results) as
fast as possible and today I spin up 2 threads at a time.
Can we do parallel in Monotouch?
Thanks
Mojo
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Best-practice-Get-webpage-HTML-inside-thread-tp4529445p4529445.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch