When queuing calls to the main thread which present speech or braille to the user, ensure they are executed immediately. - #72
Conversation
|
There are a couple of other places where |
|
Great to see you contributing here. |
… to the user, ensure they are executed immediately. By default, functions queued with queueHandler.queueFunction are delayed slightly so that queues can implement rate limiting, filter extraneous events, etc. Any of that has already occurred on the server. Therefore, on the client, we want output to be presented to the user as soon as possible; there's no benefit in delaying further. This should make speech and braille output from the server feel more responsive.
|
Oh, I see you just added a few more calls to |
|
I indeed pushed them minutes ago. I got rid of the thread pool executor and addressed nvaccess/nvda#20569 |
By default, functions queued with queueHandler.queueFunction are delayed slightly so that queues can implement rate limiting, filter extraneous events, etc. Any of that has already occurred on the server.
Therefore, on the client, we want output to be presented to the user as soon as possible; there's no benefit in delaying further. This should make speech and braille output from the server feel more responsive.