4 ms·
> It bugs me that I’m fetching this information every 30 seconds even though most of the time I won’t use it. You don't have to. If the program knows that the
by 2143 4y ago
> It bugs me that I’m fetching this information every 30 seconds even though most of the time I won’t use it.
You don't have to. If the program knows that the bus is 20 minutes away, it could wait 10 minutes or so before doing a refresh (assuming the bus doesn't magically gain a lot of speed in the meantime).