I would like to know if there is something like a framework for an execution limit per minute.
Let's say I have an API where I can request 100 times per minute.
If I send a "hello world" in a loop, I would exceed that limit.
For example, something like this:
ExecutionLimiter executer = ExecutionLimiter(executions: 100, duration: Duration(minutes: 1));
while (true) {
executer.add(() => print(“hello world“));
}
I've found the package queue, but this is only for parallelization.
Thanks for your help.