Skip to content

System.Threading.Timer.Change docs incorrect #10182

Open
@m-redding

Description

@m-redding

Describe the issue or suggestion

The docs for each of the overloads of Timer.Change say the following:

Exceptions
ObjectDisposedException
The Timer has already been disposed.

But it looks like this was intentionally changed in .NET 8 to return false when the timer has been disposed instead of throwing an exception. I think the docs should be updated here, and maybe even a note on the behavioral change if that also seems appropriate.

https://github.com/dotnet/runtime/pull/83604/files#diff-103eceae144a767ba8f1e3b8760cee55cda37ff2af1cc5d40256fe199093c64eR47

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.ThreadinguntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions