Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Sunil S Nandihalli
Thanks Hubert, That is exactly what I was looking for. Sunil. On Tue, Sep 14, 2010 at 12:54 PM, Hubert Iwaniuk wrote: > Hi Sunil, > > Before it gets to clojure.core you could use it like that: > > http://github.com/neotyk/http.async.client/blob/master/src/http/async/client/util.clj#L21 > > Chee

Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Hubert Iwaniuk
Glad I could help, Hubert. On Tue, Sep 14, 2010 at 9:39 AM, Sunil S Nandihalli wrote: > Thanks Hubert, >  That is exactly what I was looking for. > Sunil. > > On Tue, Sep 14, 2010 at 12:54 PM, Hubert Iwaniuk wrote: >> >> Hi Sunil, >> >> Before it gets to clojure.core you could use it like that:

Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Hubert Iwaniuk
Hi Sunil, Before it gets to clojure.core you could use it like that: http://github.com/neotyk/http.async.client/blob/master/src/http/async/client/util.clj#L21 Cheers, Hubert. On Tue, Sep 14, 2010 at 8:51 AM, Sunil S Nandihalli wrote: > Hello Everybody, >  Let us say I have something like > (de

Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Meikel Brandmeyer
See also here: http://groups.google.com/group/clojure-dev/browse_thread/thread/bbf34a823f3081d6 -- 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 moderat

Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Laurent PETIT
Nope. here's the source: Clojure classpath initialized by cljr. user=> (source promise) (defn promise "Alpha - subject to change. Returns a promise object that can be read with deref/@, and set, once only, with deliver. Calls to deref/@ prior to delivery will block. All subsequent derefs

is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-13 Thread Sunil S Nandihalli
Hello Everybody, Let us say I have something like (def s (promise)) . . . . now can I check if the promise hase been delivered .. Thanks Sunil. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup