12

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?

wonea
  • 4,783
  • 17
  • 86
  • 139
Serhii Shemshur
  • 1,273
  • 3
  • 15
  • 21
  • Does this answer your question? [.NET Core equivalent to Thread.Abort](https://stackoverflow.com/questions/53465551/net-core-equivalent-to-thread-abort) – Goswin Rothenthal Jan 08 '23 at 15:01

2 Answers2

9

Thread.Abort has been removed in .NET Core.

Set
  • 47,577
  • 22
  • 132
  • 150
3

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

Danny van der Kraan
  • 5,344
  • 6
  • 31
  • 41