1
0

Stubs.cs 635 B

1234567891011121314151617
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Reactive.Concurrency
  5. {
  6. #if !NO_THREAD
  7. internal static class TimerStubs
  8. {
  9. #if NETCOREAPP1_0
  10. public static readonly System.Threading.Timer Never = new System.Threading.Timer(_ => { }, null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite);
  11. #else
  12. public static readonly System.Threading.Timer Never = new System.Threading.Timer(_ => { });
  13. #endif
  14. }
  15. #endif
  16. }