C
C#14mo ago
CrosRoad95

❔ Polly - question

I have some method, but it can be quickly called multiple times and what i'm trying to do is that after certain amount of time it get called, for example Foo(); Foo(); Foo(); - called three times, but first two calls will be ignored because they happened too quickly and after let's say 200ms last foo get executed can i achieve something like this using polly? https://github.com/App-vNext/Polly it's probably called debouce, can polly do this?
2 Replies
Mayor McCheese
Mayor McCheese14mo ago
https://www.pollydocs.org/strategies/rate-limiter This isn't quite what you want but probably the closest
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server