Closed bts closed 9 years ago
I think flattening out values from catch
via unwrap seems like a good idea, I think that's just an oversight on my part. Pull request welcome, or I can take care of it myself.
I just saw your response a few minutes ago and started to take a look. You beat me to it -- thanks for implementing this!
Hey Zach,
What are your thoughts on allowing the return of deferred values from
d/catch
? Currently deferreds fromd/catch
aren't "flattened" as they are withd/chain
and friends. e.g.:I find myself wanting to do this so that I can catch errors while in a
d/loop
, andd/recur
once I've recovered (asynchronously) from the error (e.g., performing a "cooldown" sleep before recurring.)Thanks, Brian