museum-of-war / web

https://metahistory.gallery
6 stars 3 forks source link

Periodic tasks: add instant start #150

Closed AlexanderPokhilenko closed 2 years ago

AlexanderPokhilenko commented 2 years ago

We have many tasks with setIntervals, but currently they are called only after the delay.

For example, because of this, the button for buying tokens is disabled for several seconds (it leads to bad UX).

We need to make wrapper that will call periodic tasks instantly, without delays before the first start.