Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count by start time instead of end time #35

Open
molekp opened this issue Jan 10, 2022 · 0 comments
Open

Count by start time instead of end time #35

molekp opened this issue Jan 10, 2022 · 0 comments

Comments

@molekp
Copy link

molekp commented Jan 10, 2022

Hi

I've notice that Your mechanism is counting time of end of task. This is done in https://github.com/David-Desmaisons/RateLimiter/blob/master/RateLimiter/CountByIntervalAwaitableConstraint.cs#L107

Would you like the ability to optionaly setup counting time on start task?

Example: I have api which consumes 1 request/ 2 seconds. One request takes 5s. Finally I have only 1 request / 5 second, which is slow performance. I wish to send 1r/2s (I don't care of time that request takes)

I am counting on your answer.
Greetings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant