ETVoid.cs 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Diagnostics;
  3. using System.Runtime.CompilerServices;
  4. namespace ETModel
  5. {
  6. [AsyncMethodBuilder(typeof(AsyncETVoidMethodBuilder))]
  7. public struct ETVoid
  8. {
  9. public void NoAwait()
  10. {
  11. }
  12. [DebuggerHidden]
  13. public Awaiter GetAwaiter()
  14. {
  15. return new Awaiter();
  16. }
  17. public struct Awaiter : ICriticalNotifyCompletion
  18. {
  19. [DebuggerHidden]
  20. public bool IsCompleted => true;
  21. [DebuggerHidden]
  22. public void GetResult()
  23. {
  24. }
  25. [DebuggerHidden]
  26. public void OnCompleted(Action continuation)
  27. {
  28. }
  29. [DebuggerHidden]
  30. public void UnsafeOnCompleted(Action continuation)
  31. {
  32. }
  33. }
  34. }
  35. }