Closed troepolik closed 1 year ago
It does make sense to expose a task to wait clear completion in place. However, you will have to add public ExecuteFullEviction
too.
Done. But for me is not so clear how to properly run eviction. Please, look at changes closer. Is I should call ImmediateFullEviction and is IsActive flag checked properly?
It will require additional changes to forward either the task of Task.Run(ImmediateFullEviction<K, V>)
or StaggeredFullEviction<K, V>
.. However, thinking about it some more, it can probably be handled in a more graceful way by "joining" an already running full eviction if any instead of throwing/blocking and re-running/not doing anything.
For now, just remove the ExecuteFullEviction
part - I will commit it separately.
Done
Ability to call awaitable Full clean. To be sure it was cleared. Could you be so kind to approve it or give me feedback what can I fix in it to merge?