Hello everyone, I'm doing some work with tasks in preparation for the new .NET 4.5 multithreading and am curious as to how I'd be able to create a task array, fill each cell, then start them at a later time.
Right now I'm using:
But I don't want the task to start. I'd want something along the lines of this:Code:MyTask(i) = Task.Factory.StartNew(Sub() blahblah)
I'm using the Async CTP so that tasks become available in VS 2010 under .NET 4.0. If you want to poke around with it, the download is here: http://www.microsoft.com/en-us/downl...s.aspx?id=9983Code:MyTask(i) = Task.Factory.Create(Sub() blahblah) MyTask(i).Start()


Reply With Quote