예제 #1
0
 static async Task CombineLatestAsync()
 {
     await
     AsyncObservable.CombineLatest(
         AsyncObservable.Interval(TimeSpan.FromMilliseconds(250)).Take(10).Timestamp(),
         AsyncObservable.Interval(TimeSpan.FromMilliseconds(333)).Take(10).Timestamp(),
         (x, y) => x.ToString() + ", " + y.ToString()
         )
     .SubscribeAsync(Print <string>());    // TODO: Use ForEachAsync.
 }