[rabbitmq-discuss] Catching channel disconnect

Matthias Radestock matthias at lshift.net
Wed Oct 15 07:29:05 BST 2008


Valentino,

Valentino Volonghi wrote:
> Is tail recursion preserved when the call or the return value is
> inside a try..catch or a case ... of ?

It is. Try this in the shell:

1> F = fun(G) -> try throw(x) catch _ -> G(G) end end.
#Fun<erl_eval.6.13229925>
2> F(F).


Matthias.




More information about the rabbitmq-discuss mailing list