Stubs.cs 557 B

123456789101112131415
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. namespace System.Reactive.Concurrency
  3. {
  4. #if !NO_THREAD
  5. internal static class TimerStubs
  6. {
  7. #if NETCOREAPP1_0
  8. public static readonly System.Threading.Timer Never = new System.Threading.Timer(_ => { }, null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite);
  9. #else
  10. public static readonly System.Threading.Timer Never = new System.Threading.Timer(_ => { });
  11. #endif
  12. }
  13. #endif
  14. }