mardi 23 août 2016

Ember Run Loop Clarification

I have a service that contains a queue. Anything that injects this service can add an object to the service's queue. I need the service to asynchronously remove items from this queue, and run them. It would be nice to have a periodic function that just calls like service.processQueue(). Is this a proper use case to use the Ember Run Loop? How can I add this permanently to the Ember.RunLoop, and not just ran once?




Aucun commentaire:

Enregistrer un commentaire