Timeout.cs 672 B

1234567891011121314151617181920
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Threading;
  5. using System;
  6. namespace System.Threading
  7. {
  8. // A constant used by methods that take a timeout (Object.Wait, Thread.Sleep
  9. // etc) to indicate that no timeout should occur.
  10. //
  11. public static class Timeout
  12. {
  13. public static readonly TimeSpan InfiniteTimeSpan = new TimeSpan(0, 0, 0, 0, Timeout.Infinite);
  14. public const int Infinite = -1;
  15. internal const uint UnsignedInfinite = unchecked((uint)-1);
  16. }
  17. }