/// <summary> /// Projects each value of an observable sequence into a buffer that's sent out when either it's full or a given amount of time has elapsed. /// </summary> public static IObservable <IList <TSource> > BufferWithTimeOrCount <TSource>(this IObservable <TSource> source, TimeSpan timeSpan, int count) { if (source == null) { throw new ArgumentNullException("source"); } if (count <= 0) { throw new ArgumentOutOfRangeException("count"); } return(source.BufferWithTimeOrCount(timeSpan, count, Scheduler.ThreadPool)); }