Corentin Dupont | 6 Dec 20:50 2012
Picon

schedule function

Hi all,
I have a simple question: is there in the libraries a function that
can schedule a variable list of events for me?
For example of the type:
type Schedule = [UTCTime, IO()]
startSchedule :: TVar Schedule -> IO ThreadId

The function startSchedule will have to execute my actions at the
given times. Of course the TVar can be changed by another thread, so
the schedule will have to be recomputed.
Thanks!
Corentin

Gmane