You don't have to worry, it's only one instance :)

The PeriodicalExecuter does a setInterval and on each call checks if
it's stopped or not, in which case calls your method. It doesn't spawn
new PeriodicalExecuters or anything.

Best,
Nicolas

On 9/23/07, Nokacer <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> in my app the user can click "start" to ask for regular refreshments
> of the data, and can also click "stop" to stop this refreshments (and
> then he can click "start" again to restart the process).  im just
> wondering that , if he keeps starting and stopping, that is creating
> new PeriodicalExecuters and stoping them, if there will be any memory
> issues, does prototype gets rid of the PeriodicalExecuter Instances
> once they are stopped?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to