Hi Greg Here is a proof of concept of one approach you could take: http://groups.google.com/group/clojure/web/job-queue.clj
A set of agents are maintained to represent computation jobs. When the results are gathered, the agent is thrown away. I think using multiple agents in this way could be quite convenient as it means the jobs can be done in parallel. If you run the script from the command line you should get something like this: C:\java>clj job-queue.clj (4 3) (0 nil Hi mum) Which are the results of multiple queued computations taken at two subsequent points in time. >From your post it wasn't clear to me if your 'events' imply sequential processing (which could be achieved with a single agent). Regards, Tim. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" 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/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
