I have a method which is running very long. I want to be able to stop, pause and continue the execution of that method.I viewed this question and the answer is nice, but I want to use more general library like TPL. TPL has a cancellation mechanism, but I can't find pause/continue functionality.
edit
Thanks for all answers. But the problem is that I don't write that "long running" method, I just call that method.