Conversation
|
RxJava-pull-requests #600 FAILURE |
|
Why not remove the one that got a notification last? Not sure if this specific behavior particularly useful. |
|
I don't know. I think it matches Rx.NET's signature but I can't really look into |
There was a problem hiding this comment.
This doesn't match the Rx.Net signature: http://msdn.microsoft.com/en-us/library/hh211932(v=vs.103).aspx
public static IObservable<IGroupedObservable<TKey, TSource>> GroupByUntil<TSource, TKey, TDuration>(
this IObservable<TSource> source,
Func<TSource, TKey> keySelector,
Func<IGroupedObservable<TKey, TSource>, IObservable<TDuration>> durationSelector
)Why is maxGroups being added to the signature?
There was a problem hiding this comment.
I saw this added in Rx 2.2.2: http://rx.codeplex.com/SourceControl/latest#Rx.NET/Source/System.Reactive.Linq/Reactive/Linq/Observable/GroupByUntil.cs
I thought it was about limiting the groups, but apparently the ConcurrentDictionary uses the capacity to specify the concurrency level, not the group number.
I guess this PR can be ignored.
|
@akarnokd Since we already have The stated reason is:
However, that is an arbitrary decision on how to "clear out the cache" and one that would need different eviction policies. If this is going to be pursued it needs something more thorough than just a As for Is it correct that you're trying to create a |
|
Closing based on discussion above ...
|
Split from #641
Purpose: limit the active groups to a certain number. If new group is opened, the oldest group is closed.