Agent2 release 0.2.1 now wraps exceptions passed as values in a vector
marked with the metadata flag :wrapped. The request-call method can now
distinguish between exceptions thrown by a request (and rethrows them) and
exceptions used as responses (and unwraps them before returning
them). https:
Pretty neat stuff! I'm sure you had as much fun with it as I have with
agent2: https://github.com/laforge49/agent2#readme
On Saturday, August 8, 2015 at 5:50:48 AM UTC-4, Atamert Ölçgen wrote:
>
> Hi William,
>
> Manifold deferreds can capture exceptions like future does.
>
> http://aleph.io/mani
Hi William,
Manifold deferreds can capture exceptions like future does.
http://aleph.io/manifold/deferreds.html
On Sat, Aug 8, 2015 at 12:44 AM, William la Forge
wrote:
> Still a newbie here, about to release my first Clojure project. But that
> clojure blob will take some digging on my part
Still a newbie here, about to release my first Clojure project. But that
clojure blob will take some digging on my part. I use a gummed up
dereference function that checks for Throwable in the meantime.
My goal right now is to become a Dtomic freelancer. So much to learn! Which
is why I'm doin
Huh, I was sure I had done this before, but I misremembered, I was using my
own promise that rethrew Throwable instances on deref (and it was in
clojurescript!)
Clojure promises have no notion of failure, only realized/not-realized. You
need to deliver a sentinel type or value and check for it
Sorry, I meant to ask how to fail with a promise? It seems that there is no
fail method.
On Friday, August 7, 2015 at 4:52:47 PM UTC-4, Francis Avila wrote:
>
> Futures automatically capture exceptions raised in their bodies and
> reraise them when the future is derefed. Promises also throw exce
Futures automatically capture exceptions raised in their bodies and reraise
them when the future is derefed. Promises also throw exceptions when
derefed.
Unlike promises, futures are created with the code that delivers their
value, so calling fail and deliver explicitly on a future makes no sen
A future fails when it throws an exception. How to do that with a future?
It looks like (fail future exception) does not do the
trick: http://dev.clojure.org/display/design/Promises
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this gro