You could use view.setTimeout to schedule your request and then use view.setTimeout when the request is finished to schedule the next request.
Benjamin On Feb 17, 3:10 pm, GSA <[email protected]> wrote: > Hi, > > I have view.setInterval () call in my main file which is using AJAX to > fetch some data from Internet. My problem is that it appears if result > of the AJAX call is longer then timer for setInterval then I'm getting > several threads executing their own requests. What I want to do is to > make sure only one thread is being executed at any time in > view.setInterval(). Is it possible to do? > > Thanks, > G --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
