如何杀死task

找的外文资料,其实仍然是使用 thread,并且abort,

How to cancel a Task in await?

https://stackoverflow.com/questions/10134310/how-to-cancel-a-task-in-await?noredirect=1

How do I abort/cancel TPL Tasks?

https://stackoverflow.com/questions/4783865/how-do-i-abort-cancel-tpl-tasks?noredirect=1

How to abort a Task like aborting a Thread (Thread.Abort method)?

https://stackoverflow.com/questions/4359910/how-to-abort-a-task-like-aborting-a-thread-thread-abort-method

What is a safe way to stop a running thread?

https://stackoverflow.com/questions/9272332/what-is-a-safe-way-to-stop-a-running-thread/9279021#9279021

Background task with instant abort capability in c#

https://codereview.stackexchange.com/questions/117743/background-task-with-instant-abort-capability-in-c

 

posted @ 2022-06-15 15:23  rossi努力努力  阅读(41)  评论(0编辑  收藏  举报