Serhii Shemshur
Serhii Shemshur

Reputation: 1353

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?

Upvotes: 12

Views: 6482

Answers (2)

Set
Set

Reputation: 49789

Thread.Abort has been removed in .NET Core.

Upvotes: 9

Danny van der Kraan
Danny van der Kraan

Reputation: 5366

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

Upvotes: 3

Related Questions