Baishampayan Ghose <b.gh...@ocricket.com> writes: > It would be great if someone pointed out some example usage of > promise/deliver.
I've used them in cases where I think I need a future, but I don't want to wrap the future around some function just to catch and propagate its result elsewhere. In Clojure, the `future' and `future' call functions include the spawning of the function's execution in another thread. That's really several separate concerns: future = function + promise + async + deliver Exposing `promise' and `deliver' directly allows one to use other means of spawning asynchronous work (or not) while still retaining the block-on-a-latching-result capability. -- Steven E. Harris -- 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