Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do you call a sub using Task.Factory.StartNew?

Posted on 2010-11-19
1
Medium Priority
?
2,195 Views
Last Modified: 2012-05-10
I am looking for the easiest way to call a slow running subroutine using the Task.Factory.StartNew and be able to cancel it?  I have the ASYNC CTP installed if that helps.

So something like this:
Start Slow Task 1 and Wait for cancel
Task 1 complete
Start Slow Task 2 and Wait for cancel
Task 2 complete
.....

Using .NET 4.0, VB syntax
Thank you for all your help!


0
Comment
Question by:Elliott Ward
1 Comment
 
LVL 4

Accepted Solution

by:
Andre412 earned 2000 total points
ID: 34176964
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Loops Section Overview

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question