/// <summary> /// Projects each value of an observable sequence into a buffer. /// </summary> public static IObservable <IList <TSource> > BufferWithTime <TSource>(this IObservable <TSource> source, TimeSpan timeSpan) { if (source == null) { throw new ArgumentNullException("source"); } return(source.BufferWithTime(timeSpan, Scheduler.ThreadPool)); }
/// <summary> /// Projects each value of an observable sequence into a buffer. /// </summary> public static IObservable <IList <TSource> > BufferWithTime <TSource>(this IObservable <TSource> source, TimeSpan timeSpan, IScheduler scheduler) { if (source == null) { throw new ArgumentNullException("source"); } if (scheduler == null) { throw new ArgumentNullException("scheduler"); } return(source.BufferWithTime(timeSpan, timeSpan, scheduler)); }