diff options
author | Stephen Toub <stoub@microsoft.com> | 2018-03-02 22:41:23 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-03-03 02:43:26 +0300 |
commit | e5f3a6d905cae28cb0ffe016172083ac0147a7fb (patch) | |
tree | d8f67bd0de3d7135050f01c5d42089262fac5e0d | |
parent | 5ae871ca2298c8caaf8966204360f5b67c5404bb (diff) |
Fix netstandard build references to UnsafeTask
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
-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); |