Can't find Abort method in Thread
Asked Answered
T

2

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?

Tallyman answered 31/8, 2016 at 7:12 Comment(1)
Does this answer your question? .NET Core equivalent to Thread.AbortSaleswoman
V
9

Thread.Abort has been removed in .NET Core.

Voice answered 31/8, 2016 at 10:52 Comment(0)
S
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

Saintly answered 31/8, 2016 at 8:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.