Mark Task.IsFaulted as ensuring that Task.Exception is non-null (#80278)
authorJason Malinowski <jason.malinowski@microsoft.com>
Sun, 8 Jan 2023 04:08:48 +0000 (20:08 -0800)
committerGitHub <noreply@github.com>
Sun, 8 Jan 2023 04:08:48 +0000 (23:08 -0500)
commite4ada8481aba5a7515ddce704dac15ac95cadcbd
tree5f8111cdc637fd30a9825c611fe0a9407120aafb
parent13ce7b9871073bc50ed149eff03110124e8f7a3e
Mark Task.IsFaulted as ensuring that Task.Exception is non-null (#80278)

* Mark Task.IsFaulted as ensuring that Task.Exception is non-null

* Address PR feedback

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs
src/libraries/System.Runtime/ref/System.Runtime.cs