Is there a way to cancel execution of method in cancelled task?
问题 I have a problem, that I could not find any answear yet. And this is my first project with use of threading and Tasks. When my task is cancelled, it keeps executing time consuming method. Right now I have not idea how to stop execution of the method together with the task. Below is a loop, that runs tasks. Every single task is running a ParseHorseData method, that runs also several other methods. Execution of them takes sometimes a lot of time. After the task is cancelled, before await Task