Cancelling a Task

If you hit the Cancel Button from the Visual Coded Task Runner, then, the Runner will pass a signal to the Runner task thru a cancellation Token. You will get a parameter for cancellation token and you can call the method "ThrowIfCancellationRequested()" of cancellation token to stop the task. If you do not call this method, then the running task will continue until completed and then automatic task runner will stop and will not execute the next task.


Once the cancellationToken.ThrowIfCancellationRequested() is called, the task will be stoped and you will see the Cancelled Icon as the Task Status.

cancelled status

Last updated on 8 April 2018, Sunday, 9:15:52 PM