Delay and threads question

Derek Brans brans at nerdonawire.com
Thu Dec 5 01:09:41 UTC 2002


I want an object to do something every 10 minutes.

I have the following code:

startTimer
	| delay |
	delay _ Delay forMilliseconds: 10 * 60 * 1000.
	[delay wait. true] whileTrue: [self save]

My question: is it save safe to call self startTimer from initialize?
If so, why doesn't the process that called "new" get trapped?
If not, how should startTimer be called?

Many thanks,
Derek

Nerd on a Wire: Web and Information Solutions
Website Design - Database Systems - Site Hosting
604.874.6463
mailto:info at nerdonawire.com
For more information, visit http://nerdonawire.com




More information about the Squeak-dev mailing list