问题:
In a thread, I create some System.Threading.Task
and start each task.在一个线程中,我创建了一些System.Threading.Task
并启动每个任务。
When I do a .Abort()
to kill the thread, the tasks are not aborted.当我执行.Abort()
来终止线程时,任务不会中止。
How can I transmit the .Abort()
to my tasks ?如何将.Abort()
传输到我的任务?
解决方案:
参考一: https://en.stackoom.com/question/K4V7参考二: https://stackoom.com/question/K4V7