1 min readMar 6, 2019
You can either use GlobalScope
or create your own appScope
for such a purpose. Be careful, though, that such designs are usually prone to bugs, like a customer clicking button too fast and running out of memory or slowing an app down much, so it is worth thinking about it twice.