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
Should the original call to get() that passed ifAbsent return the value or null?
The two most obvious candidates would be the value or to complete with a Future.error. The latter doesn't offer particularly good ergonomics though. Given we don't have a mechanism to kill an async task in flight, I suspect the value is the right answer here.
Have we considered the option of only removing the outstanding value without failing the existing thread?
If I have two threads, the first thread is obtaining the value from the RPC, and the second thread wants to invalidate all the cached values and reload the value from the current timestamp. The second thread cannot accomplish this by simply invalidating the cache.
Repro:
Things to consider:
Should the original call to
get()
that passedifAbsent
return the value or null?The text was updated successfully, but these errors were encountered: