You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, memoize can be configured to expire based on a BooleanSupplier. To invalidate memoized item based on its value, a solution is to used a shared AtomicBoolean with a throw/retry mechanism when the boolean become true. See #909 (reply in thread).
Another drawback is that failure cannot be skipped or memoized differently
Description
It would more convenient to be able to pass a BiFunction that takes the item and the failure and return a boolean to until().
Context
Following discussion at #909.
Right now, memoize can be configured to expire based on a
BooleanSupplier
. To invalidate memoized item based on its value, a solution is to used a shared AtomicBoolean with a throw/retry mechanism when the boolean become true. See #909 (reply in thread).Another drawback is that failure cannot be skipped or memoized differently
Description
It would more convenient to be able to pass a BiFunction that takes the item and the failure and return a boolean to
until()
.Additional details
Some shortcuts could help like
The text was updated successfully, but these errors were encountered: