Skip to content

UnobservedTaskExceptionEventArgs.SetObserved mentions old default #3210

Open
@dsherret

Description

@dsherret

For UnobservedTaskExceptionEventArgs.SetObserved() the remarks state:

The Exception property is used to examine the exception without marking it as observed, whereas the xref:System.Threading.Tasks.UnobservedTaskExceptionEventArgs.SetObserved%2A method is used to mark the exception as observed. Marking the exception as observed prevents it from triggering exception escalation policy which, by default, terminates the process.

But "by default" is no longer true. The default does not terminate the process since .net 4.5 because ThrowUnobservedTaskExceptions is now false by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri2Indicates issues/PRs that are medium priorityPri3Indicates issues/PRs that are low priorityarea-System.Threading.Tasksdoc-bugProblem with the content; needs to be fixedwaiting-on-feedbackIndicates PRs that are waiting for feedback from SMEs before they can be merged

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions