On Apr 28, 02014, at 11:31, Folivi Fofo <[email protected]> wrote:
> Hi all, > > I need to iterate through an array of abjects and perform an api call then > wait 5 sec before moving to the next item. > > Looking for the way do write it but kinda stuck, > > any help would be highly appreciated. Keep a queue of things to perform. Write a function that does one and pops it off (or marks it done in some way) When you finish one, setTimeout to start the function again.
signature.asc
Description: Message signed with OpenPGP using GPGMail
