diff options
author | Stephen Toub <stoub@microsoft.com> | 2017-11-02 20:14:32 -0400 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2017-11-02 20:14:32 -0400 |
commit | 1a065afe0f78b2298dc0d1f5d7e3048ebf9426aa (patch) | |
tree | da7fd77fd1b29fa9aa6526fd2228ec30382587cb /src | |
parent | c658aee5827c00cba2b51e6cd2c652607b53e351 (diff) | |
download | coreclr-1a065afe0f78b2298dc0d1f5d7e3048ebf9426aa.tar.gz coreclr-1a065afe0f78b2298dc0d1f5d7e3048ebf9426aa.tar.bz2 coreclr-1a065afe0f78b2298dc0d1f5d7e3048ebf9426aa.zip |
Move I{Configured}ValueTaskAwaiter interfaces to correct location
They need to be in the shared partition.
Diffstat (limited to 'src')
3 files changed, 16 insertions, 16 deletions
diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs index f71067819b..fa3e7c06c5 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs @@ -77,4 +77,12 @@ namespace System.Runtime.CompilerServices (Task, bool) IConfiguredValueTaskAwaiter.GetTask() => (_value.AsTaskExpectNonNull(), _continueOnCapturedContext); } } + + /// <summary> + /// Internal interface used to enable extract the Task from arbitrary configured ValueTask awaiters. + /// </summary> + internal interface IConfiguredValueTaskAwaiter + { + (Task task, bool continueOnCapturedContext) GetTask(); + } } diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs index 7c4b0ceedb..7bc8b5cc7d 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs +++ b/src/mscorlib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs @@ -42,4 +42,12 @@ namespace System.Runtime.CompilerServices /// <remarks>This method is used when awaiting and IsCompleted returned false; thus we expect the value task to be wrapping a non-null task.</remarks> Task IValueTaskAwaiter.GetTask() => _value.AsTaskExpectNonNull(); } + + /// <summary> + /// Internal interface used to enable extract the Task from arbitrary ValueTask awaiters. + /// </summary>> + internal interface IValueTaskAwaiter + { + Task GetTask(); + } } diff --git a/src/mscorlib/src/System/Runtime/CompilerServices/TaskAwaiter.cs b/src/mscorlib/src/System/Runtime/CompilerServices/TaskAwaiter.cs index 5b2ac28222..01b803b697 100644 --- a/src/mscorlib/src/System/Runtime/CompilerServices/TaskAwaiter.cs +++ b/src/mscorlib/src/System/Runtime/CompilerServices/TaskAwaiter.cs @@ -391,22 +391,6 @@ namespace System.Runtime.CompilerServices /// </summary> internal interface IConfiguredTaskAwaiter { } - /// <summary> - /// Internal interface used to enable extract the Task from arbitrary ValueTask awaiters. - /// </summary>> - internal interface IValueTaskAwaiter - { - Task GetTask(); - } - - /// <summary> - /// Internal interface used to enable extract the Task from arbitrary configured ValueTask awaiters. - /// </summary> - internal interface IConfiguredValueTaskAwaiter - { - (Task task, bool continueOnCapturedContext) GetTask(); - } - /// <summary>Provides an awaitable object that allows for configured awaits on <see cref="System.Threading.Tasks.Task"/>.</summary> /// <remarks>This type is intended for compiler use only.</remarks> public struct ConfiguredTaskAwaitable |