简体   繁体   中英

Can't find Abort method in Thread

I'm porting a project to .NET Core and have some logic with the method. Do you know .NET Core supports Abort() method in Thread class?

Thread.Abort has been removed in .NET Core.

As far as I have understood so far it is now recommended to use CancellationToken. Please read more about how to use this here:

https://msdn.microsoft.com/en-us/library/dd997364(v=vs.110).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM