The Ember.js run loop is a mechanism that coordinates events, notifications, and timers within an Ember application. It implements listeners for queues including sync, actions, render, afterRender, and destroy. Code in one queue can trigger events that affect subsequent or preceding queues. The run loop is not infinite; it processes each queue and then exits. Common uses of the queues include propagating data changes in sync, running promises and initialization in actions, manipulating the DOM in render, initializing plugins in afterRender, and garbage collecting in destroy. The Ember run method can execute code immediately or schedule for the next loop, and scheduleOnce adds code to a single future queue.
3. the run loop is a mechanism that
Ember.js uses to group, coordinate, and
execute events, key-value notifications,
and timers within your application.
From Ember.js in Action
4. Queues in the Run Loop
Sync Actions Render AfterRender Destroy