Observable.TakeWhile allows you to run a sequence as long as a condition is true (using a delegate so we can perform computations on the actual sequence objects), but it\'s
Perhaps the following way will be useful to someone. You must use the "Do" method and the empty "Subscribe" method.
listOfCommands.ToObservable()
.Do(x =>
{
Debug.WriteLine("{0} of {1}", x.CurrentIndex, x.TotalCount);
})
.TakeWhile(c => c.CurrentIndex != c.TotalCount)
.Subscribe();
This way you get the result without writing your own extensions.