AsyncUnit.cs 545 B

1234567891011121314151617181920212223242526
  1. #pragma warning disable CS1591 // Missing XML comment for publicly visible type or
  2. using System;
  3. namespace Cysharp.Threading.Tasks
  4. {
  5. public readonly struct AsyncUnit : IEquatable<AsyncUnit>
  6. {
  7. public static readonly AsyncUnit Default = new AsyncUnit();
  8. public override int GetHashCode()
  9. {
  10. return 0;
  11. }
  12. public bool Equals(AsyncUnit other)
  13. {
  14. return true;
  15. }
  16. public override string ToString()
  17. {
  18. return "()";
  19. }
  20. }
  21. }