I am writing a game application with an event queue. The idea is that the event queue is polled every second and if there is one or more active events then we take the first one and action it,
The events themselves are represented by Ember Models (of type Event). Actioning the event just means passing the event to a function that will check the attributes and take some action accordingly - probably update some other Ember models. And the event queue itself is an Ember Service.
I am using Ember Concurrency to set up a task that will get called every second. However I have a lot of problems with the code inside this task. Often the calls to the store seem to fail. Do I need to wrap all calls to the store (to fetch data or update data) in Ember.run? Are there any add-ons/articles that might help me here?
Thanks for any help