[erlang-questions] erlang:raise/3 considered harmful?

Lukas Larsson <>
Sun May 15 20:24:23 CEST 2016


Hello Per,

Could try ... after be what you are looking for? It's not a perfect fit,
but I thought I'd mention it as it is a construct that few people seem to
know about.


>             Res = try
>                       Fun(Data, State)
>                   after  ->
>                           gen_tcp:send(Sock, "done")
>                   end,
>

Lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160515/7f9508b1/attachment.html>


More information about the erlang-questions mailing list