Closed marcan closed 1 year ago
Hello,
I was already working on something similar here: #37 There is a working proof on concept on branch test-37.
Looks reasonable. The Condition approach is closer to the original code flow (i.e. checking for an answer), but it does require a lock, while events do not. I think both approaches work.
Feel free to close this if the other commit gets merged :)
Sorry for the delay, I just merged #37
This avoids polling for websocket replies every 100ms, which both saves CPU usage and reduces the latency of requests.