$A.getCallback() usage for polling in Lightning Component

Use $A.getCallback() to wrap any code that modifies a component outside the normal rerendering lifecycle, such as in a setTimeout() call. The $A.getCallback() call ensures that the framework rerenders the modified component and processes any enqueued actions. Sample Code: Component: <aura:component implements=”force:appHostable”>          <aura:attribute type=”Integer” name=”count” default=”1″/>          <aura:handler … Continue reading $A.getCallback() usage for polling in Lightning Component