Timeout.cs 633 B

1234567891011121314151617
  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. namespace System.Threading
  5. {
  6. // A constant used by methods that take a timeout (Object.Wait, Thread.Sleep
  7. // etc) to indicate that no timeout should occur.
  8. //
  9. public static class Timeout
  10. {
  11. public static readonly TimeSpan InfiniteTimeSpan = new TimeSpan(0, 0, 0, 0, Timeout.Infinite);
  12. public const int Infinite = -1;
  13. internal const uint UnsignedInfinite = unchecked((uint)-1);
  14. }
  15. }