What is the correct way to end a System.Threading.Tasks.Task?
As per the title really.
I have a long running task tha开发者_JS百科t polls a message queue.
Occasionally I may wish to stop the task, do some work and then start it again. What is the correct way of doing this?
The proper way of stooping tasks is using cancellation tokens.
精彩评论