Skip to content

Commit 423aa28

Browse files
Immo Landwerthmairaw
authored andcommitted
Remove outdated comment (#3545)
* Remove outdated comment We added `Thread.Abort()` to .NET Core 2.0/.NET Standard 2.0. We should remove this comment because it's misleading. It's still a bad API, but it's there. * readd new line
1 parent f9de159 commit 423aa28

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

xml/System.Threading/Thread.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,7 @@ Main thread: ThreadProc.Join has returned. Press Enter to end program.
517517
## Remarks
518518
519519
> [!IMPORTANT]
520-
> The `Thread.Abort` method should be used with caution. Particularly when you call it to abort a thread other than the current thread, you do not know what code has executed or failed to execute when the <xref:System.Threading.ThreadAbortException> is thrown, nor can you be certain of the state of your application or any application and user state that it is responsible for preserving. For example, calling `Thread.Abort` may prevent static constructors from executing or prevent the release of unmanaged resources.
521-
>
522-
> Note that the `Thread.Abort` method is not supported on .NET Core.
520+
> The `Thread.Abort` method should be used with caution. Particularly when you call it to abort a thread other than the current thread, you do not know what code has executed or failed to execute when the <xref:System.Threading.ThreadAbortException> is thrown, nor can you be certain of the state of your application or any application and user state that it is responsible for preserving. For example, calling `Thread.Abort` may prevent static constructors from executing or prevent the release of unmanaged resources
523521
524522
]]></format>
525523
</remarks>

0 commit comments

Comments
 (0)