瀏覽代碼

Adding some comments to Timer.

Bart De Smet 8 年之前
父節點
當前提交
411f71d55c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      AsyncRx.NET/System.Reactive.Async/System/Reactive/Linq/Operators/Timer.cs

+ 4 - 0
AsyncRx.NET/System.Reactive.Async/System/Reactive/Linq/Operators/Timer.cs

@@ -128,6 +128,8 @@ namespace System.Reactive.Linq
             {
                 ct.ThrowIfCancellationRequested();
 
+                // TODO: Compensate for drift by adding stopwatch functionality.
+
                 do
                 {
                     await observer.OnNextAsync(tick++).RendezVous(scheduler);
@@ -154,6 +156,8 @@ namespace System.Reactive.Linq
             {
                 ct.ThrowIfCancellationRequested();
 
+                // TODO: Compensate for drift by adding stopwatch functionality.
+
                 do
                 {
                     await observer.OnNextAsync(tick++).RendezVous(scheduler);