From f9a312befe71a6c68c908ed09234a3ebc2d54b6c Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 28 Feb 2018 22:43:29 -0500 Subject: [PATCH] Move IValueTaskSource and friends to System.Threading.Tasks.Sources Group these more advanced types into a subnamespace. --- src/mscorlib/shared/System.Private.CoreLib.Shared.projitems | 2 +- .../System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs | 4 ++-- .../System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs | 2 ++ .../shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs | 1 + .../shared/System/Threading/Tasks/{ => Sources}/IValueTaskSource.cs | 2 +- src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs | 2 ++ 6 files changed, 9 insertions(+), 4 deletions(-) rename src/mscorlib/shared/System/Threading/Tasks/{ => Sources}/IValueTaskSource.cs (99%) diff --git a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems index d9ea3a3..fafe4b9 100644 --- a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems +++ b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems @@ -545,13 +545,13 @@ - + diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs index 558b467..0e1220d 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs @@ -85,7 +85,7 @@ namespace System.Runtime.CompilerServices /// Schedules the state machine to proceed to the next action when the specified awaiter completes. /// The type of the awaiter. /// The type of the state machine. - /// the awaiter + /// The awaiter. /// The state machine. public void AwaitOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion @@ -98,7 +98,7 @@ namespace System.Runtime.CompilerServices /// Schedules the state machine to proceed to the next action when the specified awaiter completes. /// The type of the awaiter. /// The type of the state machine. - /// the awaiter + /// The awaiter. /// The state machine. [SecuritySafeCritical] public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs index 0d7e3d1..65d3d56 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs @@ -5,6 +5,8 @@ using System.Diagnostics; using System.Runtime.InteropServices; using System.Threading.Tasks; +using System.Threading.Tasks.Sources; + #if !netstandard using Internal.Runtime.CompilerServices; #endif diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs index 4b3df94..0414a05 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs @@ -4,6 +4,7 @@ using System.Diagnostics; using System.Threading.Tasks; +using System.Threading.Tasks.Sources; namespace System.Runtime.CompilerServices { diff --git a/src/mscorlib/shared/System/Threading/Tasks/IValueTaskSource.cs b/src/mscorlib/shared/System/Threading/Tasks/Sources/IValueTaskSource.cs similarity index 99% rename from src/mscorlib/shared/System/Threading/Tasks/IValueTaskSource.cs rename to src/mscorlib/shared/System/Threading/Tasks/Sources/IValueTaskSource.cs index 7c7312a..3c1e883 100644 --- a/src/mscorlib/shared/System/Threading/Tasks/IValueTaskSource.cs +++ b/src/mscorlib/shared/System/Threading/Tasks/Sources/IValueTaskSource.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -namespace System.Threading.Tasks +namespace System.Threading.Tasks.Sources { /// /// Flags passed from and to diff --git a/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs b/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs index b6689c1..6c45ed6 100644 --- a/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs +++ b/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs @@ -6,6 +6,8 @@ using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using System.Threading.Tasks.Sources; + #if !netstandard using Internal.Runtime.CompilerServices; #endif -- 2.7.4