Skip to content

Mark System.Threading.Thread ResetAbort as Obsolete #41925

Closed

Description

@mdh1418

It was recognized in #41892 that System.Threading.Thread ResetAbort throws PlatformNotSupportedException everywhere and should be marked as Obsolete.

Activity

  1. added this to the 6.0.0 milestone on Sep 7, 2020
  2. added
    untriaged
    on Sep 7, 2020
  3. added
    api-ready-for-review
    on Sep 7, 2020
  4. GrabYourPitchforks commented on Sep 7, 2020

    @GrabYourPitchforks
    Member

    I've marked this ready for review since it's very straightforward. Recommend reusing the SYSLIB0006 (Thread.Abort is obsolete) code for this.

  5. removed
    untriaged
    on Sep 8, 2020
  6. terrajobst commented on Sep 8, 2020

    @terrajobst
    Contributor

    Video

    • We believe it makes sense to reuse the existing diagnostic ID
    namespace System.Threading
    {
        public sealed class Thread
        {
            // Obsoleted in .NET 5:
            //[Obsolete(DiagnosticId = "SYSLIB0006")]
            //public void Abort();
            //[Obsolete(DiagnosticId = "SYSLIB0006")]
            //public void Abort(object stateInfo);
            [Obsolete(DiagnosticId = "SYSLIB0006")]
            public static void ResetAbort();
        }
    }
  7. added
    api-approved
    and removed
    api-ready-for-review
    on Sep 8, 2020
  8. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-approvedarea-System.Threading

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions