Yes, it is because I'm calling Start twice. Thanks for pointing that out. I actually have a long list of tasks that use the ContinueWith operator. Apparently what I wanted was "new Task<>" on the very first one. I then start that task when everything is ready to go.
On Fri, Feb 10, 2012 at 5:04 PM, Jonathan Pobst <mon...@jpobst.com> wrote: > Is it because you are calling Start twice? > > StartNew () and Start () > > Jonathan > > > > On 2/10/2012 5:58 PM, Brannon King wrote: > >> 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. >> >> >> >> ______________________________**_________________ >> Monodroid mailing list >> Monodroid@lists.ximian.com >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid> >> > >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid