Timer.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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> Timer(TimeSpan dueTime)
  10. {
  11. throw new NotImplementedException();
  12. }
  13. public static IAsyncObservable<long> Timer(TimeSpan dueTime, IAsyncScheduler scheduler)
  14. {
  15. if (scheduler == null)
  16. throw new ArgumentNullException(nameof(scheduler));
  17. throw new NotImplementedException();
  18. }
  19. public static IAsyncObservable<long> Timer(DateTimeOffset dueTime)
  20. {
  21. throw new NotImplementedException();
  22. }
  23. public static IAsyncObservable<long> Timer(DateTimeOffset dueTime, IAsyncScheduler scheduler)
  24. {
  25. if (scheduler == null)
  26. throw new ArgumentNullException(nameof(scheduler));
  27. throw new NotImplementedException();
  28. }
  29. public static IAsyncObservable<long> Timer(TimeSpan dueTime, TimeSpan period)
  30. {
  31. if (period < TimeSpan.Zero)
  32. throw new ArgumentOutOfRangeException(nameof(period));
  33. throw new NotImplementedException();
  34. }
  35. public static IAsyncObservable<long> Timer(TimeSpan dueTime, TimeSpan period, IAsyncScheduler scheduler)
  36. {
  37. if (period < TimeSpan.Zero)
  38. throw new ArgumentOutOfRangeException(nameof(period));
  39. if (scheduler == null)
  40. throw new ArgumentNullException(nameof(scheduler));
  41. throw new NotImplementedException();
  42. }
  43. public static IAsyncObservable<long> Timer(DateTimeOffset dueTime, TimeSpan period)
  44. {
  45. if (period < TimeSpan.Zero)
  46. throw new ArgumentOutOfRangeException(nameof(period));
  47. throw new NotImplementedException();
  48. }
  49. public static IAsyncObservable<long> Timer(DateTimeOffset dueTime, TimeSpan period, IAsyncScheduler scheduler)
  50. {
  51. if (period < TimeSpan.Zero)
  52. throw new ArgumentOutOfRangeException(nameof(period));
  53. if (scheduler == null)
  54. throw new ArgumentNullException(nameof(scheduler));
  55. throw new NotImplementedException();
  56. }
  57. }
  58. }