lichess-org / lila Public
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
switch from throttle to throttlePromise for asynchronous calls #10266
Comments
|
can I get assigned to this issue please? |
|
Here is the list of what I think are network calls. Can you confirm please ?
|
|
|
|
I'll submit a PR soon, thank you for the suggestions |
|
The type checker will show this anyway, but to clarify: This only makes sense for network calls that return a |
|
Is this issue resolved? I am open to taking over/helping with this issue. |
|
@Hoskayne will you be up to pair programming with this issue? I tried to start long time ago but my experience is very limited with TS/JS |
|
I'm trying to work on this. I'll submit a PR soon. |
|
Seems like there is some problems... I'm updating |
|
This is really hard... It takes a long time to understand the code. I'm going to make a PR for this. |


In
ui/, identify uses ofthrottle(delay, wrapped)that wrap networks calls. Replace these withthrottlePromise(finallyDelay(delay, wrapped)).This will ensure that only one request of each kind is made in parallel, and the delay is added to the server response time.
The text was updated successfully, but these errors were encountered: