matrix-js-sdk
d2adb30d - Implement HTTP callbacks in realtime

Commit
9 years ago
Implement HTTP callbacks in realtime Hopefully this will improve our recovery time after a laptop is suspended. The idea is to treat the timeouts on the http apis as being in realtime, rather than in elapsed time while the machine is awake. To do this, we add a layer on top of window.setTimeout. We run a callback every second, which then checks the wallclock time and runs any pending callbacks.
Author
Parents
Loading