diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs b/src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs index 18e4a27a4..206b533ae 100644 --- a/src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs +++ b/src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs @@ -293,7 +293,7 @@ namespace System.Threading.Tasks _obj == null || (ObjectIsTask ? #if netstandard - UnsafeTask.Status == TaskStatus.RanToCompletion : + UnsafeGetTask().Status == TaskStatus.RanToCompletion : #else UnsafeGetTask().IsCompletedSuccessfully : #endif @@ -331,7 +331,7 @@ namespace System.Threading.Tasks if (ObjectIsTask) { #if netstandard - UnsafeTask.GetAwaiter().GetResult(); + UnsafeGetTask().GetAwaiter().GetResult(); #else TaskAwaiter.ValidateEnd(UnsafeGetTask()); #endif @@ -665,7 +665,7 @@ namespace System.Threading.Tasks _obj == null || (ObjectIsTask ? #if netstandard - UnsafeTask.Status == TaskStatus.RanToCompletion : + UnsafeGetTask().Status == TaskStatus.RanToCompletion : #else UnsafeGetTask().IsCompletedSuccessfully : #endif @@ -707,7 +707,7 @@ namespace System.Threading.Tasks if (ObjectIsTask) { #if netstandard - return UnsafeTask.GetAwaiter().GetResult(); + return UnsafeGetTask().GetAwaiter().GetResult(); #else Task<TResult> t = UnsafeGetTask(); TaskAwaiter.ValidateEnd(t); |