Results 1 to 2 of 2

Thread: Run simultaneous tasks?

Threaded View

  1. #1
    Lively Member Blupig's Avatar
    Join Date
    Apr 08
    Posts
    111

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •