SchedulerDefaults.cs 827 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. using System;
  5. namespace System.Reactive.Concurrency
  6. {
  7. internal static class SchedulerDefaults
  8. {
  9. internal static IScheduler ConstantTimeOperations { get { return ImmediateScheduler.Instance; } }
  10. internal static IScheduler TailRecursion { get { return ImmediateScheduler.Instance; } }
  11. internal static IScheduler Iteration { get { return CurrentThreadScheduler.Instance; } }
  12. internal static IScheduler TimeBasedOperations { get { return DefaultScheduler.Instance; } }
  13. internal static IScheduler AsyncConversions { get { return DefaultScheduler.Instance; } }
  14. }
  15. }