diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-02-06 16:04:11 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-02-06 16:04:11 +0300 |
commit | b5ab0878b257c27f34189d672caff2d6bc8b1f1b (patch) | |
tree | 7371a3567d1525f515e0275970ccaddf2877f248 | |
parent | 346bf46a961bbfd223b22236f5ad6ae80e027770 (diff) |
Apply changes from https://github.com/mono/mono/pull/12674 to API snapshot
-rw-r--r-- | profiles/monodroid/System.Core.cs | 3 | ||||
-rw-r--r-- | profiles/monodroid/mscorlib.cs | 65 | ||||
-rw-r--r-- | profiles/monotouch/System.Core.cs | 3 | ||||
-rw-r--r-- | profiles/monotouch/mscorlib.cs | 65 | ||||
-rw-r--r-- | profiles/net_4_x/System.Core.cs | 3 | ||||
-rw-r--r-- | profiles/net_4_x/mscorlib.cs | 65 |
6 files changed, 204 insertions, 0 deletions
diff --git a/profiles/monodroid/System.Core.cs b/profiles/monodroid/System.Core.cs index 0e6b8b6..cd6b4d3 100644 --- a/profiles/monodroid/System.Core.cs +++ b/profiles/monodroid/System.Core.cs @@ -3045,7 +3045,10 @@ namespace System.Threading.Tasks { public static partial class TaskExtensions { + public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } public static System.Threading.Tasks.Task Unwrap(this System.Threading.Tasks.Task<System.Threading.Tasks.Task> task) { throw null; } public static System.Threading.Tasks.Task<TResult> Unwrap<TResult>(this System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> task) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/monodroid/mscorlib.cs b/profiles/monodroid/mscorlib.cs index 6765eb9..8032967 100644 --- a/profiles/monodroid/mscorlib.cs +++ b/profiles/monodroid/mscorlib.cs @@ -2968,6 +2968,10 @@ namespace System string ShadowCopyDirectories { get; set; } string ShadowCopyFiles { get; set; } } + public partial interface IAsyncDisposable + { + System.Threading.Tasks.ValueTask DisposeAsync(); + } public partial interface IAsyncResult { object AsyncState { get; } @@ -6785,6 +6789,15 @@ namespace System.Collections.Generic bool System.Collections.IEqualityComparer.Equals(object x, object y) { throw null; } int System.Collections.IEqualityComparer.GetHashCode(object obj) { throw null; } } + public partial interface IAsyncEnumerable<out T> + { + System.Collections.Generic.IAsyncEnumerator<T> GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + } + public partial interface IAsyncEnumerator<out T> : System.IAsyncDisposable + { + T Current { get; } + System.Threading.Tasks.ValueTask<bool> MoveNextAsync(); + } public partial interface ICollection<T> : System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable { int Count { get; } @@ -13359,6 +13372,20 @@ namespace System.Runtime.CompilerServices public AccessedThroughPropertyAttribute(string propertyName) { } public string PropertyName { get { throw null; } } } + public partial struct AsyncIteratorMethodBuilder + { + private object _dummy; + public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.INotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + public void Complete() { } + public static System.Runtime.CompilerServices.AsyncIteratorMethodBuilder Create() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void MoveNext<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + } + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] + public sealed partial class AsyncIteratorStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute + { + public AsyncIteratorStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false, AllowMultiple=false)] public sealed partial class AsyncMethodBuilderAttribute : System.Attribute { @@ -13531,6 +13558,28 @@ namespace System.Runtime.CompilerServices public bool TryGetValue(TKey key, out TValue value) { throw null; } public delegate TValue CreateValueCallback(TKey key); } + public readonly partial struct ConfiguredAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + } + public readonly partial struct ConfiguredCancelableAsyncEnumerable<T> + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext) { throw null; } + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T>.Enumerator GetAsyncEnumerator() { throw null; } + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation(System.Threading.CancellationToken cancellationToken) { throw null; } + public readonly partial struct Enumerator + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public T Current { get { throw null; } } + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable<bool> MoveNextAsync() { throw null; } + } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ConfiguredTaskAwaitable { @@ -25003,6 +25052,7 @@ namespace System.Threading public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; } + public static bool QueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] @@ -25021,6 +25071,7 @@ namespace System.Threading public unsafe static bool UnsafeQueueNativeOverlapped(System.Threading.NativeOverlapped* overlapped) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] public static bool UnsafeQueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; } + public static bool UnsafeQueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] @@ -25741,6 +25792,20 @@ namespace System.Threading.Tasks.Sources System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token); void OnCompleted(System.Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags); } + public partial struct ManualResetValueTaskSourceCore<TResult> + { + private TResult _result; + private object _dummy; + private int _dummyPrimitive; + public bool RunContinuationsAsynchronously { get { throw null; } set { } } + public short Version { get { throw null; } } + public TResult GetResult(short token) { throw null; } + public System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token) { throw null; } + public void OnCompleted(System.Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags) { } + public void Reset() { } + public void SetException(System.Exception error) { } + public void SetResult(TResult result) { } + } [System.FlagsAttribute] public enum ValueTaskSourceOnCompletedFlags { diff --git a/profiles/monotouch/System.Core.cs b/profiles/monotouch/System.Core.cs index f98edb2..abf6e68 100644 --- a/profiles/monotouch/System.Core.cs +++ b/profiles/monotouch/System.Core.cs @@ -3018,7 +3018,10 @@ namespace System.Threading.Tasks { public static partial class TaskExtensions { + public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } public static System.Threading.Tasks.Task Unwrap(this System.Threading.Tasks.Task<System.Threading.Tasks.Task> task) { throw null; } public static System.Threading.Tasks.Task<TResult> Unwrap<TResult>(this System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> task) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/monotouch/mscorlib.cs b/profiles/monotouch/mscorlib.cs index 066a2ea..e58697f 100644 --- a/profiles/monotouch/mscorlib.cs +++ b/profiles/monotouch/mscorlib.cs @@ -2948,6 +2948,10 @@ namespace System string ShadowCopyDirectories { get; set; } string ShadowCopyFiles { get; set; } } + public partial interface IAsyncDisposable + { + System.Threading.Tasks.ValueTask DisposeAsync(); + } public partial interface IAsyncResult { object AsyncState { get; } @@ -6756,6 +6760,15 @@ namespace System.Collections.Generic bool System.Collections.IEqualityComparer.Equals(object x, object y) { throw null; } int System.Collections.IEqualityComparer.GetHashCode(object obj) { throw null; } } + public partial interface IAsyncEnumerable<out T> + { + System.Collections.Generic.IAsyncEnumerator<T> GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + } + public partial interface IAsyncEnumerator<out T> : System.IAsyncDisposable + { + T Current { get; } + System.Threading.Tasks.ValueTask<bool> MoveNextAsync(); + } public partial interface ICollection<T> : System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable { int Count { get; } @@ -12729,6 +12742,20 @@ namespace System.Runtime.CompilerServices public AccessedThroughPropertyAttribute(string propertyName) { } public string PropertyName { get { throw null; } } } + public partial struct AsyncIteratorMethodBuilder + { + private object _dummy; + public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.INotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + public void Complete() { } + public static System.Runtime.CompilerServices.AsyncIteratorMethodBuilder Create() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void MoveNext<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + } + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] + public sealed partial class AsyncIteratorStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute + { + public AsyncIteratorStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false, AllowMultiple=false)] public sealed partial class AsyncMethodBuilderAttribute : System.Attribute { @@ -12901,6 +12928,28 @@ namespace System.Runtime.CompilerServices public bool TryGetValue(TKey key, out TValue value) { throw null; } public delegate TValue CreateValueCallback(TKey key); } + public readonly partial struct ConfiguredAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + } + public readonly partial struct ConfiguredCancelableAsyncEnumerable<T> + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext) { throw null; } + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T>.Enumerator GetAsyncEnumerator() { throw null; } + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation(System.Threading.CancellationToken cancellationToken) { throw null; } + public readonly partial struct Enumerator + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public T Current { get { throw null; } } + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable<bool> MoveNextAsync() { throw null; } + } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ConfiguredTaskAwaitable { @@ -23850,6 +23899,7 @@ namespace System.Threading public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; } + public static bool QueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] @@ -23868,6 +23918,7 @@ namespace System.Threading public unsafe static bool UnsafeQueueNativeOverlapped(System.Threading.NativeOverlapped* overlapped) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] public static bool UnsafeQueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; } + public static bool UnsafeQueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] @@ -24588,6 +24639,20 @@ namespace System.Threading.Tasks.Sources System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token); void OnCompleted(System.Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags); } + public partial struct ManualResetValueTaskSourceCore<TResult> + { + private TResult _result; + private object _dummy; + private int _dummyPrimitive; + public bool RunContinuationsAsynchronously { get { throw null; } set { } } + public short Version { get { throw null; } } + public TResult GetResult(short token) { throw null; } + public System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token) { throw null; } + public void OnCompleted(System.Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags) { } + public void Reset() { } + public void SetException(System.Exception error) { } + public void SetResult(TResult result) { } + } [System.FlagsAttribute] public enum ValueTaskSourceOnCompletedFlags { diff --git a/profiles/net_4_x/System.Core.cs b/profiles/net_4_x/System.Core.cs index 9937610..85e53fa 100644 --- a/profiles/net_4_x/System.Core.cs +++ b/profiles/net_4_x/System.Core.cs @@ -3153,7 +3153,10 @@ namespace System.Threading.Tasks { public static partial class TaskExtensions { + public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, bool continueOnCapturedContext) { throw null; } public static System.Threading.Tasks.Task Unwrap(this System.Threading.Tasks.Task<System.Threading.Tasks.Task> task) { throw null; } public static System.Threading.Tasks.Task<TResult> Unwrap<TResult>(this System.Threading.Tasks.Task<System.Threading.Tasks.Task<TResult>> task) { throw null; } + public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Threading.CancellationToken cancellationToken) { throw null; } } } diff --git a/profiles/net_4_x/mscorlib.cs b/profiles/net_4_x/mscorlib.cs index 42a2271..c0e8ebd 100644 --- a/profiles/net_4_x/mscorlib.cs +++ b/profiles/net_4_x/mscorlib.cs @@ -3014,6 +3014,10 @@ namespace System string ShadowCopyDirectories { get; set; } string ShadowCopyFiles { get; set; } } + public partial interface IAsyncDisposable + { + System.Threading.Tasks.ValueTask DisposeAsync(); + } public partial interface IAsyncResult { object AsyncState { get; } @@ -6813,6 +6817,15 @@ namespace System.Collections.Generic bool System.Collections.IEqualityComparer.Equals(object x, object y) { throw null; } int System.Collections.IEqualityComparer.GetHashCode(object obj) { throw null; } } + public partial interface IAsyncEnumerable<out T> + { + System.Collections.Generic.IAsyncEnumerator<T> GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + } + public partial interface IAsyncEnumerator<out T> : System.IAsyncDisposable + { + T Current { get; } + System.Threading.Tasks.ValueTask<bool> MoveNextAsync(); + } public partial interface ICollection<T> : System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable { int Count { get; } @@ -13481,6 +13494,20 @@ namespace System.Runtime.CompilerServices public AccessedThroughPropertyAttribute(string propertyName) { } public string PropertyName { get { throw null; } } } + public partial struct AsyncIteratorMethodBuilder + { + private object _dummy; + public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.INotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + public void Complete() { } + public static System.Runtime.CompilerServices.AsyncIteratorMethodBuilder Create() { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]public void MoveNext<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } + } + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] + public sealed partial class AsyncIteratorStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute + { + public AsyncIteratorStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, Inherited=false, AllowMultiple=false)] public sealed partial class AsyncMethodBuilderAttribute : System.Attribute { @@ -13653,6 +13680,28 @@ namespace System.Runtime.CompilerServices public bool TryGetValue(TKey key, out TValue value) { throw null; } public delegate TValue CreateValueCallback(TKey key); } + public readonly partial struct ConfiguredAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + } + public readonly partial struct ConfiguredCancelableAsyncEnumerable<T> + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext) { throw null; } + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T>.Enumerator GetAsyncEnumerator() { throw null; } + public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation(System.Threading.CancellationToken cancellationToken) { throw null; } + public readonly partial struct Enumerator + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public T Current { get { throw null; } } + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable<bool> MoveNextAsync() { throw null; } + } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ConfiguredTaskAwaitable { @@ -25160,6 +25209,7 @@ namespace System.Threading public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] public static bool QueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; } + public static bool QueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecuritySafeCriticalAttribute] @@ -25178,6 +25228,7 @@ namespace System.Threading public unsafe static bool UnsafeQueueNativeOverlapped(System.Threading.NativeOverlapped* overlapped) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] public static bool UnsafeQueueUserWorkItem(System.Threading.WaitCallback callBack, object state) { throw null; } + public static bool UnsafeQueueUserWorkItem<TState>(System.Action<TState> callBack, TState state, bool preferLocal) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] public static System.Threading.RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; } [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)][System.Security.SecurityCriticalAttribute] @@ -25898,6 +25949,20 @@ namespace System.Threading.Tasks.Sources System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token); void OnCompleted(System.Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags); } + public partial struct ManualResetValueTaskSourceCore<TResult> + { + private TResult _result; + private object _dummy; + private int _dummyPrimitive; + public bool RunContinuationsAsynchronously { get { throw null; } set { } } + public short Version { get { throw null; } } + public TResult GetResult(short token) { throw null; } + public System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token) { throw null; } + public void OnCompleted(System.Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags) { } + public void Reset() { } + public void SetException(System.Exception error) { } + public void SetResult(TResult result) { } + } [System.FlagsAttribute] public enum ValueTaskSourceOnCompletedFlags { |