From: Stephen Toub Date: Fri, 3 Nov 2017 00:14:32 +0000 (-0400) Subject: Move I{Configured}ValueTaskAwaiter interfaces to correct location X-Git-Tag: accepted/tizen/base/20180629.140029~691^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a065afe0f78b2298dc0d1f5d7e3048ebf9426aa;p=platform%2Fupstream%2Fcoreclr.git Move I{Configured}ValueTaskAwaiter interfaces to correct location They need to be in the shared partition. --- diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs index f710678..fa3e7c0 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); } } + + /// + /// Internal interface used to enable extract the Task from arbitrary configured ValueTask awaiters. + /// + 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 7c4b0ce..7bc8b5c 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 /// This method is used when awaiting and IsCompleted returned false; thus we expect the value task to be wrapping a non-null task. Task IValueTaskAwaiter.GetTask() => _value.AsTaskExpectNonNull(); } + + /// + /// Internal interface used to enable extract the Task from arbitrary ValueTask awaiters. + /// > + 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 5b2ac28..01b803b 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 /// internal interface IConfiguredTaskAwaiter { } - /// - /// Internal interface used to enable extract the Task from arbitrary ValueTask awaiters. - /// > - internal interface IValueTaskAwaiter - { - Task GetTask(); - } - - /// - /// Internal interface used to enable extract the Task from arbitrary configured ValueTask awaiters. - /// - internal interface IConfiguredValueTaskAwaiter - { - (Task task, bool continueOnCapturedContext) GetTask(); - } - /// Provides an awaitable object that allows for configured awaits on . /// This type is intended for compiler use only. public struct ConfiguredTaskAwaitable