2.3 KiB
2.3 KiB
System.Runtime.CompilerServices
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);
+ }
}