|
-
Aug 30th, 2012, 12:18 PM
#1
Thread Starter
Lively Member
Run simultaneous tasks?
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:
Code:
MyTask(i) = Task.Factory.StartNew(Sub() blahblah)
But I don't want the task to start. I'd want something along the lines of this:
Code:
MyTask(i) = Task.Factory.Create(Sub() blahblah)
MyTask(i).Start()
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=9983
Last edited by Blupig; Aug 30th, 2012 at 12:34 PM.
-
Aug 31st, 2012, 02:37 PM
#2
Thread Starter
Lively Member
Re: Run simultaneous tasks?
I don't mean to spam, but does anyone know anything about this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|