[SalesForce] Polling in lightning component

What's the best way to implement polling inside Lightning component. I'd like to update my component every 5-10 seconds, calling backend (i.e. Apex class) to obtain new data for rendering. Seems like there is no apex:actionPoller analogue in Lightning.

Best Answer

Is this truly a polling event, or could it handled via PushTopics? If it is based on the value changing on a record, consider using PushTopics.

For polling, setTimeout and setInterval work, just be sure to use $A.run when making calls to actions, etc.