dotnet / dotnet/dotnet-api-docs
TaskScheduler's UnobservedTaskException doc is confusing for .Net Core vs. .Net classic
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
Let me preamble with: I am perfectly happy to PR a proposed change if I get a green light :).
I'm looking at:
https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskscheduler.unobservedtaskexception?view=net-5.0
I think this doc is losing a lot of clarity because it's talking about .Net classic and .Net core at the same time -- It appears as if the Application.config XML can be used with .Net core, and the ThrowOnUnobservedTaskException property isn't even available in .Net Core's runtime. Basically, I would propose we talk about similarities in a clearly delineated section ("As of .Net 4.5, both .Net classic and .Net core have the same behavior by default...") and then have a separate section discussing things that are specific to .Net 4.5 -- where we talk about the config and the historical aspect for "Pre-.Net 4.0".
Contributor guide
Assessment
This issue has not been assessed yet.