repetitive event

From: <Marc.Furrer_at_di.epfl.ch>
Date: Fri, 04 Nov 94 13:17:27 +0100

Sorry if it is a beginner question, but how do you execute a closure at
repeated
time without blocking Tk or consuming too much CPU ressources.

something like :

(bind "." "<every-1-second>" '(refresh))

or

(while #t
        (if (tk-event-ready?)
                (proceed-with-tk-event)
                (do-my-work))
        (sleep-a-wile 10))
                        

Thanks for your help,

Marc.

PS: this is to check for new mail in mailbox. any other idea ?

--
Furrer Marc 		    EPFL DI-LTI, 1015 Lausanne, Suisse
Marc.Furrer_at_di.epfl.ch      +41 21 693 29 07 / 66 00 (Fax)
                            http://ltiwww.epfl.ch/~furrer
--
You are a wise man my friend.
Not yet sir. But with your help, I am learning.
    -- Riker and Data, "The Measure of a Man", stardate 42523.7
Received on Fri Nov 04 1994 - 13:18:25 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST