I am reading a lot on TPL and found out the ways in which we can use the cancellation mechanism. But i got stuck with WaitHandle.
If i want to cancel the task, i can define the CancellationTokenSource and pass it along with the Task and i can use ThrowIfCancellationRequested method to cancel the task.
My question is when i need to use WaitHandle for cancellation purpose, and why simple cancellation can't work in that situation?
EDIT MSDN link : http://msdn.microsoft.com/en-us/library/dd997364 .. see listening by using WaitHandle..
Just learning TPL..
Please help..