I want to create a lazy seq backed by an open file (or db connection,
or something else that needs cleanup).  I can't wrap the consumer in a
with-anything.

Is there a general method for cleaning up after the consumer discards
its reference to that lazy seq?  I'm vaguely aware of Java finalize,
but am also aware that it is unpredictable (e.g. you aren't guaranteed
to be driven at the next gc).

Does Clojure even provide the ability to define a finalize method for
a lazy seq?

(Sipping water from a firehose...)

-- 
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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to