Link to home
Start Free TrialLog in
Avatar of Elliott Ward
Elliott Ward

asked on

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

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!


ASKER CERTIFIED SOLUTION
Avatar of Andre412
Andre412
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial