[mono-android] TPL is currently broken?
Brannon King
notacommie at gmail.com
Fri Feb 10 23:58:36 UTC 2012
It seems that the Task Parallel Library support is broken on the current
version of Mono for Android (8.0.30703)?
I put this code in the bottom of the OnCreate in the auto-generated
activity file in a fresh android project:
var t1 = Task.Factory.StartNew(() =>
{ Thread.Sleep(3000);
RunOnUiThread(() => button.Text = "Three Seconds");
});
t1.Start();
It blows chunks in the start call. I'm using VS2010. Any ideas? The
ThreadPool.QueueUserWorkItem does work. It just would be nice to use
the TPL cancellation functionality. Thanks for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120210/f311566d/attachment.html>
More information about the Monodroid
mailing list