fix RXObservableCollection
This commit is contained in:
1 parent
7a35c90895
commit
0cf3b16f43
1 file changed
+1
-1
@@ -26,7 +26,7 @@ namespace mbts.ui.utility
|
||||
/// </summary>
|
||||
public RXObservableCollection(IObservable<IEnumerable<T>> data, SynchronizationContext context, TimeSpan throttle, IEqualityComparer<T> equality_comparer) {
|
||||
_equality_comparer = equality_comparer ?? EqualityComparer<T>.Default;
|
||||
if (throttle != TimeSpan.Zero) data = data.Throttle(throttle);
|
||||
if (throttle != TimeSpan.Zero) data = data.Buffer(throttle).Where(d => d.Count > 0).Select(d => d[d.Count - 1]);
|
||||
if (context != null) data = data.ObserveOn(context);
|
||||
_sub = data.Subscribe(this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user