Re: Are futures garbage-collected?

2011-09-29 Thread Jan Rychter
Thanks to everyone for the helpful replies. I've been using futures in this manner for a long time now and they work fine, but I wanted to make sure this is the specified behavior. --J. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Are futures garbage-collected?

2011-09-28 Thread Michael Jaaka
I'm using futures for queuing jobs to stress test a server, multiple processess,each reciving and futuring job. Works as expected for many days with no problems in cpu and mem usage... Clojure rox. On 28 Wrz, 22:48, Mark wrote: > The future object itself is garbage collected but the thread is n

Re: Are futures garbage-collected?

2011-09-28 Thread Mark
The future object itself is garbage collected but the thread is not, so you should be ok. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated -

Re: Are futures garbage-collected?

2011-09-28 Thread Matt Hoyt
It won't get GC until it finishes running unless the thread throws an unhandled Exception or the application is terminated.   Matt Hoyt From: Jan Rychter To: clojure@googlegroups.com Sent: Wednesday, September 28, 2011 3:38 PM Subject: Are futures ga

Are futures garbage-collected?

2011-09-28 Thread Jan Rychter
If I create a future but do not hold on to it anywhere and never dereference it, is the thread guaranteed to run until successful completion? In other words, if I create futures entirely for side effects, should I worry about them getting terminated and GCd? I looked for an answer but could not