EntryEvicted Method
EntryEvicted(Action<IHMap<TKey, TValue>, MapEntryEvictedEventArgs<TKey, TValue>>)
Adds an handler which runs when a map entry is evicted.
Declaration
public MapEventHandlers<TKey, TValue> EntryEvicted(Action<IHMap<TKey, TValue>, MapEntryEvictedEventArgs<TKey, TValue>> handler)
Parameters
Action<IHMap<TKey, TValue>, Map |
handler | The handler. |
Returns
Map |
The handlers. |
EntryEvicted(Func<IHMap<TKey, TValue>, MapEntryEvictedEventArgs<TKey, TValue>, ValueTask>)
Adds an handler which runs when a map entry is evicted.
Declaration
public MapEventHandlers<TKey, TValue> EntryEvicted(Func<IHMap<TKey, TValue>, MapEntryEvictedEventArgs<TKey, TValue>, ValueTask> handler)
Parameters
Func<IHMap<TKey, TValue>, Map |
handler | The handler. |
Returns
Map |
The handlers. |