How to do: something every: soOften?

Julian Fitzell julian at beta4.com
Fri Dec 26 22:22:41 UTC 2003


You could do:

[[(Delay forSeconds: 60) wait. some activity] repeat] fork

though I agree it would be nice to have a better mechanism for this.

Julian

Jimmie Houchin wrote:

> Hello,
> 
> I am wanting to call a method every certainTimeInterval.
> 
> The other day I spent the afternoon browsing for the appropriate method 
> to handle something like this. I found many different time, delay and 
> event type messages but I didn't spot anything like this:
> 
> Cron do: [some activity] every: someTimeInterval
> 
> I may very well have overlooked what I was looking for.
> 
> I can definitely put something together that works from what I saw.
> 
> But is there a favored way to handle something like this in Squeak.
> 
> Wisdom and advice greatly appreciated.
> 
> Jimmie Houchin
> 
> 

-- 
julian at beta4.com
Beta4 Productions (http://www.beta4.com)




More information about the Squeak-dev mailing list