This issue is tracking follow up work from the initial implementation of `PartitionedRateLimiter` in https://github.com/dotnet/runtime/pull/67677. - [ ] Figure out what interval to use for the internal Timer - Dynamically change it based on the intervals of the replenishing limiters? - Come up with some "good enough" default - Make it an option that the user must configure? - [ ] Background exceptions are currently ignored and not visible to users - Check what other libraries like HttpClient do - Maybe `ExceptionDispatchInfo.Capture` and dispatch throwing to the threadpool so it's at least an unhandled exception - [x] Start using `IdleDuration` to cleanup internal dictionary when limiters aren't active - Probably don't want to immediately remove limiters when they become idle, likely should wait 10 seconds or something
This issue is tracking follow up work from the initial implementation of
PartitionedRateLimiterin #67677.ExceptionDispatchInfo.Captureand dispatch throwing to the threadpool so it's at least an unhandled exceptionIdleDurationto cleanup internal dictionary when limiters aren't active