Skip to content

Commit

Permalink
Fixed ambiguous overload for ObservableListEx.ExpireAfter().
Browse files Browse the repository at this point in the history
  • Loading branch information
JakenVeina committed Jun 5, 2024
1 parent a505bc5 commit f07f8cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2310,8 +2310,6 @@ namespace DynamicData
where T : notnull { }
public static System.IObservable<DynamicData.IChangeSet<T>> Except<T>(this System.IObservable<DynamicData.IChangeSet<T>> source, params System.IObservable<DynamicData.IChangeSet<T>>[] others)
where T : notnull { }
public static System.IObservable<System.Collections.Generic.IEnumerable<T>> ExpireAfter<T>(this DynamicData.ISourceList<T> source, System.Func<T, System.TimeSpan?> timeSelector, System.Reactive.Concurrency.IScheduler? scheduler = null)
where T : notnull { }
public static System.IObservable<System.Collections.Generic.IEnumerable<T>> ExpireAfter<T>(this DynamicData.ISourceList<T> source, System.Func<T, System.TimeSpan?> timeSelector, System.TimeSpan? pollingInterval = default, System.Reactive.Concurrency.IScheduler? scheduler = null)
where T : notnull { }
public static System.IObservable<DynamicData.IChangeSet<T>> Filter<T>(this System.IObservable<DynamicData.IChangeSet<T>> source, System.Func<T, bool> predicate)
Expand Down
19 changes: 0 additions & 19 deletions src/DynamicData/List/ObservableListEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -652,25 +652,6 @@ public static IObservable<IChangeSet<T>> Except<T>(this IObservableList<IObserva
public static IObservable<IChangeSet<T>> Except<T>(this IObservableList<ISourceList<T>> sources)
where T : notnull => sources.Combine(CombineOperator.Except);

/// <summary>
/// Removes items from the cache according to the value specified by the time selector function.
/// </summary>
/// <typeparam name="T">The type of the item.</typeparam>
/// <param name="source">The source.</param>
/// <param name="timeSelector">Selector returning when to expire the item. Return null for non-expiring item.</param>
/// <param name="scheduler">The scheduler.</param>
/// <returns>An observable which emits the enumerable of items.</returns>
public static IObservable<IEnumerable<T>> ExpireAfter<T>(
this ISourceList<T> source,
Func<T, TimeSpan?> timeSelector,
IScheduler? scheduler = null)
where T : notnull
=> List.Internal.ExpireAfter<T>.Create(
source: source,
timeSelector: timeSelector,
pollingInterval: null,
scheduler: scheduler);

/// <summary>
/// Removes items from the cache according to the value specified by the time selector function.
/// </summary>
Expand Down

0 comments on commit f07f8cb

Please sign in to comment.