Solved

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

Posted on 2010-11-19
1
2,021 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 500 total points
ID: 34176964
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now