1
0
mirror of synced 2025-12-23 21:05:00 -05:00

Api diff between 2.0 and 2.1

This commit is contained in:
Wes Haggard
2018-05-25 15:28:02 -07:00
parent e455f4aa1f
commit 5185cd6ad3
40 changed files with 2003 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
# System.Runtime.CompilerServices
``` diff
namespace System.Runtime.CompilerServices {
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public struct AsyncValueTaskMethodBuilder {
+ public ValueTask Task { get; }
+ public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine;
+ public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine;
+ public static AsyncValueTaskMethodBuilder Create();
+ public void SetException(Exception exception);
+ public void SetResult();
+ public void SetStateMachine(IAsyncStateMachine stateMachine);
+ public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine;
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public struct ConfiguredValueTaskAwaitable {
+ public ConfiguredValueTaskAwaitable.ConfiguredValueTaskAwaiter GetAwaiter();
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public struct ConfiguredValueTaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion {
+ public bool IsCompleted { get; }
+ public void GetResult();
+ public void OnCompleted(Action continuation);
+ public void UnsafeOnCompleted(Action continuation);
+ }
+ }
public static class RuntimeFeature {
+ public const string PortablePdb = "PortablePdb";
}
public sealed class RuntimeWrappedException : Exception {
+ public RuntimeWrappedException(object thrownObject);
}
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public struct ValueTaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion {
+ public bool IsCompleted { get; }
+ public void GetResult();
+ public void OnCompleted(Action continuation);
+ public void UnsafeOnCompleted(Action continuation);
+ }
}
```