Re: Why is "add-watch" still in alpha?

2014-11-19 Thread Val Waeselynck
I also sometimes wish I could attach async handler to promises. I agree that you can emulate this with (thread ...) calls, but sometimes you really want a fully non-blocking behavior. If your promises are delivered by an asynchronous, non-blocking system, it feels too bad to end up with a block

Re: Why is "add-watch" still in alpha?

2013-12-29 Thread Juha Syrjälä
Hi, According to this thread https://groups.google.com/forum/#!topic/clojure/zM6cbhuBNxY add-watch is no longer marked alpha in Clojure 1.6-alpha3 On Sunday, December 29, 2013 11:24:07 PM UTC+2, larry google groups wrote: > > add-watch was alpha in Clojure 1.2: > > http://clojuredocs.org/clojur

Re: Why is "add-watch" still in alpha?

2013-12-29 Thread Cedric Greevey
Actually, one simple way to use core.async to asynchronously watch a future or a promise, or *any* other blocking-derefable thingy, for delivery, is just to throw a (thread (do-something-with @thingy)) in your code somewhere. The thread will block until the thingy is ready, and then do whatever. Me

Re: Why is "add-watch" still in alpha?

2013-12-29 Thread Cedric Greevey
On Sun, Dec 29, 2013 at 4:24 PM, larry google groups < lawrencecloj...@gmail.com> wrote: > And here is where the greatest disappointment arrives: neither > future > nor promise in

Why is "add-watch" still in alpha?

2013-12-29 Thread larry google groups
add-watch was alpha in Clojure 1.2: http://clojuredocs.org/clojure_core/1.2.0/clojure.core/add-watch it is still alpha now, in Clojure 1.5: http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/add-watch I am curious what the plan is for add-watch? I was just reading this: h