Replies: 1 comment 5 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When calling
GetItemAsync
we addtcs
to an entry inMultiMap
, but when removing atcs
, we don't remove empty entries inMultiMap
.When the wrapped
ConcurrentDictionary
has an item removed or is cleared, I believe we should accordingly update_pendingRequests
.I haven't looked deeper into how much an issue this might be.
My suggestion is to change
AsyncDictionaryHelper
to create theConcurrentDictionary
itself and expose necessary methods to ensure cleanup is performed.I've made a POC in jnyrup@f62ec11
Beta Was this translation helpful? Give feedback.
All reactions