Interval.cs 839 B

1234567891011121314151617181920212223
  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.Reactive.Concurrency;
  5. namespace System.Reactive.Linq
  6. {
  7. partial class AsyncObservable
  8. {
  9. public static IAsyncObservable<long> Interval(TimeSpan period) => Interval(period, TaskPoolAsyncScheduler.Default);
  10. public static IAsyncObservable<long> Interval(TimeSpan period, IAsyncScheduler scheduler)
  11. {
  12. if (period < TimeSpan.Zero)
  13. throw new ArgumentOutOfRangeException(nameof(period));
  14. if (scheduler == null)
  15. throw new ArgumentNullException(nameof(scheduler));
  16. throw new NotImplementedException();
  17. }
  18. }
  19. }