Closed MarkCiliaVincenti closed 4 months ago
@MarkCiliaVincenti thanks for this, it looks much shorter and nicer.
@tvatavuk could you check? I have no idea what the original code does and if the replacement is suitable.
@tvatavuk Thanks for the analysis.
@MarkCiliaVincenti we are very strict when adding new dependencies, as the side effects can be very far reaching.
Because of this I think it's better not to incorporate this change.
That's OK but @tvatavuk please note that AsyncKeyedLock has absolutely no compatibility issues with .NET 8; in fact the tests are written in .NET 8.
This will clean up the dictionary (avoids a slow memory leak) while using pooling to further reduce memory allocations.